Terraform AWS
Links: 113 Terraform Index
AWS¶
- For using our programmatic access credentials with AWS we can make use of
provider
in terraform.- This is not a recommended approach.
- Instead we can have the credentials in
.aws/config/credentials
and terraform will automatically make use of those credentials. - Another way of passing these variables is using the environment variables.
- We can also set the region in environment variables allowing us to remove the provider block completely
Different ways of creating IAM policies with terraform¶
- Using
heredoc
syntax for the policy json - Attaching an IAM policy to an user
- Using file for policy json
- We can make use of variable substitution in the heredoc syntax
- ¶
Last updated: 2023-01-09