We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We want to use aws_iam_policy_document rather than json for our policy definitions.
aws_iam_policy_document
resource "aws_iam_policy" "example_s3_access" { name = "${module.component_metadata.full_name}-test-s3-access" policy = data.aws_iam_policy_document.example_s3_access.json } data "aws_iam_policy_document" "example_s3_access" { statement { actions = [ "s3:ListBucket", "s3:GetObject", "s3:PutObject", "s3:DeleteObject", ] resources = [ module.s3_bucket.s3_bucket_arn, "${module.s3_bucket.s3_bucket_arn}/*", ] } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We want to use
aws_iam_policy_document
rather than json for our policy definitions.The text was updated successfully, but these errors were encountered: