Skip to content

Commit

Permalink
fix(DMVP) add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
SarhadMeta committed Sep 23, 2024
1 parent 87857fe commit 8231639
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/policy/1-example.tf
Original file line number Diff line number Diff line change
@@ -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/*"
]
}
]
}
}
29 changes: 29 additions & 0 deletions tests/policy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# private

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements

No requirements.

## Providers

No providers.

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="external_policies"></a> [policies](#module\_policies) | ../.. | n/a |

## Resources

No resources.

## Inputs

No inputs.

## Outputs

No outputs.
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

0 comments on commit 8231639

Please sign in to comment.