Skip to content
New issue

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

fix: if bucket_id is given, do not create log bucket #55

Merged
merged 5 commits into from
Sep 29, 2024

Conversation

AdamTylerLynch
Copy link
Contributor

what

Fixed a bug. Properly evaluate if bucket provided, do not create bucket

why

references

Closes #44

@AdamTylerLynch AdamTylerLynch requested review from a team as code owners April 7, 2024 18:26
Copy link

mergify bot commented Apr 7, 2024

💥 This pull request now has conflicts. Could you fix it @AdamTylerLynch? 🙏

@mergify mergify bot added conflict This PR has conflicts triage Needs triage labels Apr 7, 2024
@mergify mergify bot removed the conflict This PR has conflicts label Apr 7, 2024
Copy link
Member

@Gowiem Gowiem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, simple fix! Thanks @AdamTylerLynch

@Gowiem
Copy link
Member

Gowiem commented Sep 22, 2024

/terratest

@mergify mergify bot removed the triage Needs triage label Sep 22, 2024
@Gowiem Gowiem added bugfix Change that restores intended behavior patch A minor, backward compatible change labels Sep 22, 2024
@Gowiem Gowiem changed the title removed bug. If providedbucket, do not create. fix: if bucket_id is given, do not create log bucket Sep 22, 2024
Copy link
Member

@Gowiem Gowiem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small fix to downstream logic.

ssm_log_bucket.tf Outdated Show resolved Hide resolved
@Gowiem
Copy link
Member

Gowiem commented Sep 22, 2024

/terratest

@Gowiem Gowiem enabled auto-merge (squash) September 22, 2024 20:58
Copy link
Member

@Gowiem Gowiem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@Gowiem
Copy link
Member

Gowiem commented Sep 22, 2024

/terratest

@Gowiem
Copy link
Member

Gowiem commented Sep 23, 2024

Tests look good, but we're getting an annoying IAM permissioning error that is causing the failure:

TestExamplesComplete 2024-09-22T21:02:09Z retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷
│ Error: creating EC2 Instance: operation error EC2: RunInstances, https response error StatusCode: 403, RequestID: 32d14e15-3e0f-41af-95b6-b6c7a769bac5, api error UnauthorizedOperation: You are not authorized to perform this operation. User: arn:aws:sts::799847381734:assumed-role/cptest-test-ue2-sandbox-gha-iam-terratest/terratest is not authorized to perform: ec2:RunInstances on resource: arn:aws:ec2:us-east-2:799847381734:instance/* with an explicit deny in a service control policy. Encoded authorization failure message: TLA7lt_Zjgdw7Mc9cUwQYaiGRJk4K3QD3wm_LfacQ3YoLrVbYdcekBHxmPiC0DgEBFQ54JROGLSZKziRPCX5IjYI-6iddSSK_CPMfuvsRmVdzu-qKrObNmlbDRpR-D8mThpzkkC4Io9CTy6Uh2VbZ4MXL8Fb13d34VrKov0TJ3TCqjCwYI2i91TlKeltFDV50h3MzR9dj09ZULV-q3SDDCj0aBfmlfq3kMMwEzpIfl33wCWSDM0-QvIbbqNDDg5p1hZg9JzFzPVT1KlwY4Q8Zv_RZZY8cMKsHoFMM_cJqFl2ntBlkzi5jcGK7Te7aN-bHHANfIGLI_z5bB0ZF8NMQCiBqgjyz0ldtnH9ZavdMw2XOQhZ_C3_4OSIOCwiKwnwoZOTzzw1Tu75wfKHm-JOJN2ggAhDHm5djT4E5wNV-ohml4Ial03Ym_2TSQxxn706Uxmcd5lhG0Heqcopo-KxKhYsZZwOm4XbOrNXl7jpilR3GoSd6fek3L_JgJZCrHJCPU6U8GehTaQSuYxqaMefoni5w58LXc87SqjKeL4_kpTNWNtxrRwf1P7_V1pH7eSut-iZDNGk1dz6RcU_O46h6t2MfIw5M1onrXkcRdytHUNdBwSgTKd-JQoB2o1IZhljVfwuw84ljafGI3tNkgRBu6iSMSH_gRIc1Qyy5bFsGkLofPRnkEhwPUqAxKX9gpOD_rGWFSJCJ2u3as25IGmz8maXguTVYcJjqt1Bs3W3JGCBOJgC294xQSe5AG5MZ0xA0_pFNXZWU3jLQzlFhrV5nh_J-ynlXGJ3SQohWzy1QbRPlMB08S0ODBJvdXsuSwY-TwZecH-ixcdUmmrym8JItLA5DZrX0kJjDkZu0xOf9tk8SXhSDQ2IlzYiBPwQtepLA2flAqSm6uhuk3otP57tFZoISZnKE91Vj9Isg_M4K-7rqe_pW58oqUujJVP52y3YVH9Y9-A-fXKfeF08IoBgFtuSptrOWjsV9XdqRgY9Sc1sHeSOPWFkvkGVOV32tFYZmm_KM_1c8MmCkk45ZmnZRg5SECg69aa5KgqPKnUT7emANo6-srfAOp9gcZrhfJGXapIZ7jU0jZX_PSU9JH1qJ_UTDm7ERuzX-1cCaYnejXB4FNA2AI6Cn9hXKAhgapQkYm5cZ4M4ZFTZ2todb5THOp0x1Q
│ 
│   with module.ec2_instance.aws_instance.default[0],
│   on .terraform/modules/ec2_instance/main.tf line 109, in resource "aws_instance" "default":
│  109: resource "aws_instance" "default" {
│ 
╵}

I'll surface this with the folks at CP and we'll see if there is something they need to do to the test infra. Sadly, it'll be on hold until we get those green. Apologies for the wait @AdamTylerLynch!

@Gowiem Gowiem added the needs-cloudposse Needs Cloud Posse assistance label Sep 23, 2024
Copy link

mergify bot commented Sep 23, 2024

Important

Cloud Posse Engineering Team Review Required

This pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes.

To expedite this process, reach out to us on Slack in the #pr-reviews channel.

@Gowiem Gowiem requested a review from goruha September 23, 2024 17:19
@Gowiem
Copy link
Member

Gowiem commented Sep 23, 2024

@AdamTylerLynch quick update: @goruha from the CP team is on this and said he will provide an update / fix this week. We'll get it merged once tests are unblocked. Thanks for the patience!

@goruha
Copy link
Member

goruha commented Sep 24, 2024

/terratest

@goruha
Copy link
Member

goruha commented Sep 29, 2024

/terratest

@Gowiem Gowiem merged commit cd35819 into cloudposse:main Sep 29, 2024
15 checks passed
@mergify mergify bot removed the needs-cloudposse Needs Cloud Posse assistance label Sep 29, 2024
Copy link
Contributor

These changes were released in v1.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Change that restores intended behavior patch A minor, backward compatible change
Projects
None yet
3 participants