diff --git a/tests/policy/1-example.tf b/tests/policy/1-example.tf new file mode 100644 index 0000000..112ccd4 --- /dev/null +++ b/tests/policy/1-example.tf @@ -0,0 +1,29 @@ +module "external-policies" { + source = "../.." + + name = "policies-bucket" + attach_policy = true + + policy = { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "module-test-statID", + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::*:user/*" + }, + "Action": [ + "s3:GetObject", + "s3:PutObject", + "s3:PutObjectAcl", + "s3:ListBucket", + ], + "Resource": [ + "arn:aws:s3:::policies-bucket", + "arn:aws:s3:::policies-bucket/*" + ] + } + ] + } +} \ No newline at end of file diff --git a/tests/policy/README.md b/tests/policy/README.md new file mode 100644 index 0000000..08c03ff --- /dev/null +++ b/tests/policy/README.md @@ -0,0 +1,29 @@ +# private + + +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +| Name | Source | Version | +|------|--------|---------| +| [policies](#module\_policies) | ../.. | n/a | + +## Resources + +No resources. + +## Inputs + +No inputs. + +## Outputs + +No outputs. +