Skip to content

Instantly share code, notes, and snippets.

@backpacked
backpacked / aws_cli_mfa_assume-role.md
Last active December 2, 2021 03:28
Using aws cli with multi-factor authentication (MFA)

Using aws cli with multi-factor authentication (MFA)

AWS has a great console where it is easy to use multi-factor authentication (MFA) after it has been configured for the user. With this tutorial you can also use MFA with aws commandline tools. To do this AWS uses Secure Token Service, which allows assume-role with MFA. This process helps create a much more secure way to use Access Keys on a remote machine. Even if the key is compromised, it is almost impossible to use without the MFA device and the knowledge of the role that the IAM user is allowed to access using the access key. To take advantage of this process follow these steps:

Creating User

This section is based on the Policies for Delegating Access from AWS.

Create IAM Policy

Create an IAM policy and give it the desired access permissions. In this example I have given the user access to write to a s3 bucket.

  • Policy to access to one of your bucket
@backpacked
backpacked / slack_vc.md
Created December 31, 2022 05:00
Valley Climbers Rules and Guidelines

Slack Valley Climbers Rules and Guidelines

  1. Do not @channel in #general.
  2. Respect each other and the tools we use.
  3. Check the channel list before you decide to make a new channel. If a channel already exists that you want to create, just join it and start slackting!
  4. Don't upload copyrighted content, unless it is freely available from the publisher.
  5. If you have an issue, contact an admin. You can see the list of admins down below.

Valley Climbers Slack is dedicated to providing a harassment-free experience for everyone, regardless of gender, sexual orientation, disability, physical appearance, body size, race, or religion. We do not tolerate harassment of participants in any form. Sexual language and imagery is not appropriate for any slack topic. Participants violating these rules will be expelled from the workspace and channel at the sole discretion of the workspace and channel administrators.