Skip to content

Conversation

@sbkok
Copy link
Collaborator

@sbkok sbkok commented Oct 14, 2022

Why?

As described in issue #549. When an account is moved in or out of an organization unit (OU), the pipelines that include that OU are not updated accordingly.

What?

By checking the type of trigger that started this CodePipeline execution, it will force the upload process of the deployment map files when the pipeline was triggered using a StartPipelineExecution API Call. As these are used when the pipeline is instructed to start by a Lambda function that detected an organization unit change.

  • Add support for --force to the sync_to_s3.py helper.
  • Add describe_codepipeline_trigger.py helper to fetch the trigger type of a specific execution.
  • Set the --force as $EXTRA_OPTS that are passed to the sync_to_s3.py helper if needed.
  • Allow aws-deployment-framework-pipelines CodeBuild container to fetch the aws-deployment-framework-pipelines executions.

By submitting this pull request, I confirm that you can use, modify, copy, and
redistribute this contribution, under the terms of your choice.

**Why?**

As described in issue awslabs#549. When an account is moved in or out of an
organization unit (OU), the pipelines that include that OU are not updated
accordingly.

**What?**

By checking the type of trigger that started this CodePipeline execution, it
will force the upload process of the deployment map files when the pipeline
was triggered using a StartPipelineExecution API Call. As these are used
when the pipeline is instructed to start by a Lambda function that detected an
organization unit change.

* Add support for --force to the `sync_to_s3.py` helper.
* Add `describe_codepipeline_trigger.py` helper to fetch the trigger type of a
  specific execution.
* Set the `--force` as `$EXTRA_OPTS` that are passed to the `sync_to_s3.py`
  helper if needed.
* Allow `aws-deployment-framework-pipelines` CodeBuild container to fetch the
  `aws-deployment-framework-pipelines` executions.
@sbkok sbkok added the bug Something isn't working label Oct 14, 2022
@sbkok sbkok added this to the v3.2.0 milestone Oct 14, 2022
@sbkok sbkok merged commit beb649d into awslabs:master Oct 26, 2022
@sbkok sbkok deleted the fix/update-pipelines-upon-org-changes branch October 26, 2022 17:52
@sbkok sbkok restored the fix/update-pipelines-upon-org-changes branch December 6, 2022 10:54
@sbkok sbkok deleted the fix/update-pipelines-upon-org-changes branch December 6, 2022 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants