Skip to content

Commit

Permalink
update(ssm_log_bucket): use source_policy_documents (cloudposse#22)
Browse files Browse the repository at this point in the history
* update(ssm_log_bucket): use source_policy_documents

* Auto Format

* update(main.tf): updated ami reference

* update(main.tf): use an ami from us-east-2

Co-authored-by: cloudpossebot <[email protected]>
  • Loading branch information
mikedizon and cloudpossebot authored Dec 13, 2022
1 parent a563679 commit 627eeb6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/validate-codeowners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
steps:
- name: "Checkout source code at current commit"
uses: actions/checkout@v2
# Leave pinned at 0.7.1 until https://github.com/mszostok/codeowners-validator/issues/173 is resolved
- uses: mszostok/[email protected]
if: github.event.pull_request.head.repo.full_name == github.repository
name: "Full check of CODEOWNERS"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply

[![README Footer][readme_footer_img]][readme_footer_link]
[![Beacon][beacon]][website]

<!-- markdownlint-disable -->
[logo]: https://cloudposse.com/logo-300x69.svg
[docs]: https://cpco.io/docs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ssm-patch-manager&utm_content=docs
[website]: https://cpco.io/homepage?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-ssm-patch-manager&utm_content=website
Expand Down Expand Up @@ -445,3 +445,4 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
[share_googleplus]: https://plus.google.com/share?url=https://github.com/cloudposse/terraform-aws-ssm-patch-manager
[share_email]: mailto:?subject=terraform-aws-ssm-patch-manager&body=https://github.com/cloudposse/terraform-aws-ssm-patch-manager
[beacon]: https://ga-beacon.cloudposse.com/UA-76589703-4/cloudposse/terraform-aws-ssm-patch-manager?pixel&cs=github&cm=readme&an=terraform-aws-ssm-patch-manager
<!-- markdownlint-restore -->
2 changes: 1 addition & 1 deletion examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module "ec2_instance" {
vpc_id = module.vpc.vpc_id
subnet = module.subnets.private_subnet_ids[0]
security_groups = [module.vpc.vpc_default_security_group_id]
ami = "ami-009b28ad8707b9ee8"
ami = "ami-0beaa649c482330f7"
ami_owner = "amazon"
ssh_key_pair = ""

Expand Down
8 changes: 4 additions & 4 deletions ssm_log_bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ module "ssm_patch_log_s3_bucket" {
source = "cloudposse/s3-bucket/aws"
version = "2.0.0"

acl = "private"
versioning_enabled = var.ssm_bucket_versioning_enable
policy = local.bucket_policy
context = module.ssm_patch_log_s3_bucket_label.context
acl = "private"
versioning_enabled = var.ssm_bucket_versioning_enable
source_policy_documents = [local.bucket_policy]
context = module.ssm_patch_log_s3_bucket_label.context
}

0 comments on commit 627eeb6

Please sign in to comment.