Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Terraform: Version 1.8+

  • AWS Authentication and Credentials: Please set it up in your local environment using command-line options, environment variables, assume role, credentials files, configuration files, etc.

    • Command-line Options

      Code Block
      languagebash
      aws s3 ls --profile profile1
    • Environment Variables

      Code Block
      languagebash
      export AWS_ACCESS_KEY_ID="AWS_ACCESS_KEY_ID_XXX"
      export AWS_SECRET_ACCESS_KEY="AWS_SECRET_ACCESS_KEY_XXX"
      export AWS_SESSION_TOKEN="AWS_SESSION_TOKEN_XXX"
    • Assume role

      Code Block
      aws sts assume-role \
          --role-arn arn:aws:iam::123456789012:role/xaccounts3access \
          --role-session-name s3-access-example
    • Credentials and Configuration File - update at ~/.aws/credentials and ~/.aws/config

      Code Block
      languagebash
      aws configure
  • AWS Account: Ensure the following IAM permissions are in place:

...