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

Cross Region Pipelines #6871

Closed
EdisonHarada opened this issue Dec 17, 2018 · 6 comments · Fixed by #12549
Closed

Cross Region Pipelines #6871

EdisonHarada opened this issue Dec 17, 2018 · 6 comments · Fixed by #12549
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/codepipeline Issues and PRs that pertain to the codepipeline service.
Milestone

Comments

@EdisonHarada
Copy link

EdisonHarada commented Dec 17, 2018

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

As AWS launched the Cross Region Pipelines, we don't need to create one pipeline per region or use lambdas to deploy in another region.

We can just simply create one pipeline and S3 buckets in the other regions, so the own pipeline would copy the artifacts and deploy it in other regions.

The unique way to implement that today is using AWS CLI.
Here is the doc: https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-create-cross-region.html

New or Affected Resource(s)

  • aws_codepipeline

Potential Terraform Configuration

N/A

References

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. service/codepipeline Issues and PRs that pertain to the codepipeline service. labels Dec 17, 2018
@bflad
Copy link
Contributor

bflad commented Feb 19, 2019

Due to the change of the underlying API implementation for this functionality, the Terraform AWS Provider can unexpectedly crash if a pipeline is manually configured with cross-region support outside Terraform. See also: #7573

@edmundcraske
Copy link
Contributor

It seems like quite a few people are running into crashes as per #7573 due to making changes to a terraform-managed CodePipeline in the AWS Console - I'm assuming that they have updated the Console to automatically set all pipelines as cross-region. I don't know if anyone's actively looking at this or what it would take to fix this, but it looks like it is becoming a little bit more than a nice-to-have!

@dalesit
Copy link

dalesit commented Feb 21, 2019

The change can be as little as someone changing the branch in the source stage, but using the console as it is just needed to push a hotfix or something transitory. If it is done in the console, it breaks Terraform. I would expect Terraform to just put it back if it is not in the code, but not panic and crash.

@bflad
Copy link
Contributor

bflad commented Apr 3, 2020

The functionality for this was merged in via #12549 however GitHub was having issues at the time so closing manually.

@bflad bflad closed this as completed Apr 3, 2020
@ghost
Copy link

ghost commented Apr 3, 2020

This has been released in version 2.56.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented May 3, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/codepipeline Issues and PRs that pertain to the codepipeline service.
Projects
None yet
4 participants