Skip to content

Instantly share code, notes, and snippets.

@prog893
Created March 13, 2020 18:09
Show Gist options
  • Save prog893/bd5c7c118ea24e98e3240e20f68f9bb4 to your computer and use it in GitHub Desktop.
Save prog893/bd5c7c118ea24e98e3240e20f68f9bb4 to your computer and use it in GitHub Desktop.
module "iam" {
source = "baikonur-oss/iam-nofile/aws"
version = "v2.0.0"
name = "example_name"
type = "ec2"
policy_json = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject"
],
"Resource": [
"${data.aws_s3_bucket.example.arn}/*"
]
}
]
}
EOF
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment