-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
During terminate process, we are seeing the status not updated to successful and remains in Under Change. On closer look at the logs we see the following the codebuild logs
INFO:root:XXXXXXXXXXXX/pp-YYYYYYYYYYYY Command args: Namespace(action='destroy', provisioned_product_descriptor='XXXXXXXXXXXX/pp-YYYYYYYYYYYY',
launch_role='arn:aws:iam::XXXXXXXXXXXX:role/-launch-role', region='us-east-1', terraform_state_bucket='aws-sce-tf-community-ue1-AAAAAAAAAAAAAAA-tf-state', artifact_path='', artifact_parameters=None, tags=None, tf_output=True) INFO:root:XXXXXXXXXXXX/pp-YYYYYYYYYYYY
Handling multi region INFO:root:XXXXXXXXXXXX/pp-YYYYYYYYYYYY Runnning command: ['rm', '-f', '-r', '/root/workspaces/XXXXXXXXXXXX/pp-YYYYYYYYYYYY'] INFO:root:XXXXXXXXXXXX/pp-YYYYYYYYYYYY Workspace directory set up: /root/workspaces/XXXXXXXXXXXX/pp-YYYYYYYYYYYY
INFO:root:XXXXXXXXXXXX/pp-YYYYYYYYYYYY Runnning command: ['terraform', 'init', '-no-color'] INFO:root:XXXXXXXXXXXX/pp-YYYYYYYYYYYY
Runnning command: ['terraform', 'validate', '-no-color'] Removed the region env variables INFO:root:XXXXXXXXXXXX/pp-YYYYYYYYYYYY
Runnning command: ['terraform', 'destroy', '-auto-approve', '-no-color'] INFO:root:XXXXXXXXXXXX/pp-YYYYYYYYYYYY........... Resources: 41 destroyed.
INFO:root:XXXXXXXXXXXX/pp-YYYYYYYYYYYY Removing workspace directory /root/workspaces/XXXXXXXXXXXX/pp-YYYYYYYYYYYY
INFO:root:XXXXXXXXXXXX/pp-YYYYYYYYYYYY Runnning command: ['rm', '-f', '-r', '/root/workspaces/XXXXXXXXXXXX/pp-YYYYYYYYYYYY']
--
182 | SUCCEEDED
183 | /codebuild/output/tmp/script.sh: line 43: /usr/local/bin/aws: Argument list too long
From our analysis the aws command fails to update the service catalog back
aws servicecatalog notify-terminate-provisioned-product-engine-workflow-result --workflow-token $SCE_WORKFLOW_TOKEN --record-id $SCE_RECORD_ID --status $STATUS
Let us know if anyone came across this and the would be the recommended fix.
Metadata
Metadata
Assignees
Labels
No labels