• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

profile

AWS Search for RDS

January 3, 2022

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.

Filed Under: Cloud Tagged With: aws, cli, describe-instances, profile, rds, region, search

AWS Set Profile

November 7, 2021

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

Filed Under: Cloud Tagged With: aws, AWS_PROFILE, default, export, profile, s3, set

Set User Umask

August 20, 2019

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

Filed Under: Linux Tagged With: bashrc, profile, set, umask

  • Home
  • About
  • Archives

Copyright © 2023