Skip to content

Conversation

@Gowiem
Copy link
Member

@Gowiem Gowiem commented Feb 24, 2024

what

why

  • Stays on latest module version in our example
  • We're no longer passing a hardcoded AMI (AMI must have been deprecated because it was causing tests to fail)

references

@Gowiem Gowiem added the no-release Do not create a new release (wait for additional code changes) label Feb 24, 2024
@Gowiem Gowiem self-assigned this Feb 24, 2024
@Gowiem Gowiem requested review from a team as code owners February 24, 2024 05:26
@Gowiem
Copy link
Member Author

Gowiem commented Feb 24, 2024

/terratest

@Gowiem Gowiem enabled auto-merge (squash) February 24, 2024 05:27
@Gowiem
Copy link
Member Author

Gowiem commented Feb 24, 2024

/terratest

nitrocode
nitrocode previously approved these changes Feb 24, 2024
@nitrocode nitrocode dismissed their stale review February 24, 2024 15:54

looks like tests are failing

@nitrocode
Copy link
Member

The last test returns this error

TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │ Error: registering SSM Patch Baseline (pb-009c41ffb525fbcc5) for Patch Group (TOPATCH): AlreadyExistsException: Patch Group TOPATCH already has a baseline registered for OperatingSystem AMAZON_LINUX_2.
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │ 
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │   with module.ssm_patch_manager.aws_ssm_patch_group.install_patchgroup[0],
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │   on ../../main.tf line 210, in resource "aws_ssm_patch_group" "install_patchgroup":
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66:210: resource "aws_ssm_patch_group" "install_patchgroup" {
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │ 
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: ╵
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: ╷
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │ Error: registering SSM Patch Baseline (pb-009c41ffb525fbcc5) for Patch Group (TOSCAN): AlreadyExistsException: Patch Group TOSCAN already has a baseline registered for OperatingSystem AMAZON_LINUX_2.
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │ 
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │   with module.ssm_patch_manager.aws_ssm_patch_group.scan_patchgroup[0],
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │   on ../../main.tf line 216, in resource "aws_ssm_patch_group" "scan_patchgroup":
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66:216: resource "aws_ssm_patch_group" "scan_patchgroup" {
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │ 
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: ╵
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: ╷
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │ Error: creating EC2 Instance: Unsupported: The requested configuration is currently not supported. Please check the documentation for supported configurations.
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │ 	status code: 400, request id: 7f17a1a8-bbcf-47eb-a4f1-ecb0c6fe3444
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │ 
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │   with module.ec2_instance.aws_instance.default[0],
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │   on .terraform/modules/ec2_instance/main.tf line 104, in resource "aws_instance" "default":
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66:104: resource "aws_instance" "default" {
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: │ 
TestExamplesComplete 2024-02-24T05:35:16Z logger.go:66: ╵
TestExamplesComplete 2024-02-24T05:35:16Z retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷
│ Error: registering SSM Patch Baseline (pb-009c41ffb525fbcc5) for Patch Group (TOPATCH): AlreadyExistsException: Patch Group TOPATCH already has a baseline registered for OperatingSystem AMAZON_LINUX_2.
│ 
│   with module.ssm_patch_manager.aws_ssm_patch_group.install_patchgroup[0],
│   on ../../main.tf line 210, in resource "aws_ssm_patch_group" "install_patchgroup":210: resource "aws_ssm_patch_group" "install_patchgroup" {
│ 
╵
╷
│ Error: registering SSM Patch Baseline (pb-009c41ffb525fbcc5) for Patch Group (TOSCAN): AlreadyExistsException: Patch Group TOSCAN already has a baseline registered for OperatingSystem AMAZON_LINUX_2.
│ 
│   with module.ssm_patch_manager.aws_ssm_patch_group.scan_patchgroup[0],
│   on ../../main.tf line 216, in resource "aws_ssm_patch_group" "scan_patchgroup":216: resource "aws_ssm_patch_group" "scan_patchgroup" {
│ 
╵
╷
│ Error: creating EC2 Instance: Unsupported: The requested configuration is currently not supported. Please check the documentation for supported configurations.
│ 	status code: 400, request id: 7f17a1a8-bbcf-47eb-a4f1-ecb0c6fe3444
│ 
│   with module.ec2_instance.aws_instance.default[0],
│   on .terraform/modules/ec2_instance/main.tf line 104, in resource "aws_instance" "default":104: resource "aws_instance" "default" {
│ 
╵}
    apply.go:15: 
        	Error Trace:	apply.go:15
        	            				examples_complete_test.go:37
        	Error:      	Received unexpected error:
        	            	FatalError{Underlying: error while running command: exit status 1; ╷
        	            	│ Error: registering SSM Patch Baseline (pb-009c41ffb525fbcc5) for Patch Group (TOPATCH): AlreadyExistsException: Patch Group TOPATCH already has a baseline registered for OperatingSystem AMAZON_LINUX_2.
        	            	│ 
        	            	│   with module.ssm_patch_manager.aws_ssm_patch_group.install_patchgroup[0],
        	            	│   on ../../main.tf line 210, in resource "aws_ssm_patch_group" "install_patchgroup":210: resource "aws_ssm_patch_group" "install_patchgroup" {
        	            	│ 
        	            	╵
        	            	╷
        	            	│ Error: registering SSM Patch Baseline (pb-009c41ffb525fbcc5) for Patch Group (TOSCAN): AlreadyExistsException: Patch Group TOSCAN already has a baseline registered for OperatingSystem AMAZON_LINUX_2.
        	            	│ 
        	            	│   with module.ssm_patch_manager.aws_ssm_patch_group.scan_patchgroup[0],
        	            	│   on ../../main.tf line 216, in resource "aws_ssm_patch_group" "scan_patchgroup":216: resource "aws_ssm_patch_group" "scan_patchgroup" {
        	            	│ 
        	            	╵
        	            	╷
        	            	│ Error: creating EC2 Instance: Unsupported: The requested configuration is currently not supported. Please check the documentation for supported configurations.
        	            	│ 	status code: 400, request id: 7f17a1a8-bbcf-47eb-a4f1-ecb0c6fe3444
        	            	│ 
        	            	│   with module.ec2_instance.aws_instance.default[0],
        	            	│   on .terraform/modules/ec2_instance/main.tf line 104, in resource "aws_instance" "default":104: resource "aws_instance" "default" {
        	            	│ 
        	            	╵}
        	Test:       	TestExamplesComplete
TestExamplesComplete 2024-02-24T05:35:16Z retry.go:91: terraform [destroy -auto-approve -input=false -var attributes=["24560"] -var-file fixtures.us-east-2.tfvars -lock=false]

@nitrocode
Copy link
Member

/terratest

@Gowiem
Copy link
Member Author

Gowiem commented Feb 27, 2024

Hm... I'm not sure what the deal is here. @jamengual have you run into this error before with your work using Patch manager?

@jamengual
Copy link
Contributor

/terratest

@jamengual
Copy link
Contributor

Hm... I'm not sure what the deal is here. @jamengual have you run into this error before with your work using Patch manager?

not really. maybe we hit a limit on the CP test account? we might need support from CP to check the test account trail.

@hans-d
Copy link

hans-d commented Mar 3, 2024

/terratest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-release Do not create a new release (wait for additional code changes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants