Here’s a simple way to search for a RDS instance in AWS via CLI.
aws rds describe-db-instances \ --db-instance-identifier rds-instance-name \ --region us-east-1 \ --profile my-account |
You may have to cycle through accounts and regions to find it.
cloud engineer
Here’s a simple way to search for a RDS instance in AWS via CLI.
aws rds describe-db-instances \ --db-instance-identifier rds-instance-name \ --region us-east-1 \ --profile my-account |
aws rds describe-db-instances \ --db-instance-identifier rds-instance-name \ --region us-east-1 \ --profile my-account
You may have to cycle through accounts and regions to find it.
If you find yourself using a named profile for every awscli command, you can set it temporarily.
Listing a bucket with a named profile.
aws s3 ls --profile=yourprofile |
aws s3 ls --profile=yourprofile
If you set AWS_PROFILE, you can then list a bucket without a named profile.
export AWS_PROFILE=yourprofile aws s3 ls |
export AWS_PROFILE=yourprofile aws s3 ls
After you are done, you can reset it back to default.
export AWS_PROFILE=default |
export AWS_PROFILE=default
How to set up umask for a Linux user.
# sets umask for all users vi /etc/profile # sets umask for a user vi ~/.bashrc |
# sets umask for all users vi /etc/profile # sets umask for a user vi ~/.bashrc
Add the following umask line to the file.
umask 0022 |
umask 0022