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

[New Service]: AWS CodePipeline V2 Trigger based on tags #35765

Closed
sandy318 opened this issue Feb 12, 2024 · 4 comments
Closed

[New Service]: AWS CodePipeline V2 Trigger based on tags #35765

sandy318 opened this issue Feb 12, 2024 · 4 comments
Labels
service/codepipeline Issues and PRs that pertain to the codepipeline service.

Comments

@sandy318
Copy link

Description

AWS CodePipeline announces support for starting a pipeline execution on git tags pushed to repositories in GitHub, GitHub Enterprise Server, GitLab Cloud and Bitbucket Cloud using CodeStarSourceConnection source actions.

looks like an argument named trigger is not available.

aws-codepipeline-trigger

Requested Resource(s) and/or Data Source(s)

aws_codepipeline.codepipeline

Potential Terraform Configuration

resource "aws_codepipeline" "codepipeline" {
  name          = "app"
  pipeline_type = "V2"
  TriggerType      = "SpecifyFilter"
  EventType        = "Push"
  FilterType       = "Tags"
  FilterTags       = ["release-*"]
}
  role_arn      = aws_iam_role.codepipeline_role.arn
  artifact_store {
    location = aws_s3_bucket.codepipeline_bucket.bucket
    type     = "S3"
  }
  stage {
    name = "Source"
    action {
      name             = "Source"
      category         = "Source"
      owner            = "AWS"
      provider         = "CodeStarSourceConnection"
      version          = "1"
      output_artifacts = ["SourceArtifact"]
      namespace        = "SourceVariables"
      configuration = {
        ConnectionArn = aws_codestarconnections_connection.example.arn
        FullRepositoryId = var.repo
        BranchName       = var.branch_name

      }
    }
  }
}

References

https://aws.amazon.com/about-aws/whats-new/2023/10/aws-codepipeline-triggering-git-tags/
https://aws.amazon.com/about-aws/whats-new/2024/02/codepipeline-trigger-filters-execution-modes/

Would you like to implement a fix?

None

Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/codepipeline Issues and PRs that pertain to the codepipeline service. label Feb 12, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Feb 12, 2024
@trevorrea
Copy link
Contributor

Looks to be a dupe of #35475

@justinretzolk
Copy link
Member

Duplicate of #35475

@justinretzolk justinretzolk marked this as a duplicate of #35475 Feb 12, 2024
@justinretzolk justinretzolk closed this as not planned Won't fix, can't repro, duplicate, stale Feb 12, 2024
@terraform-aws-provider terraform-aws-provider bot removed the needs-triage Waiting for first response or review from a maintainer. label Feb 12, 2024
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/codepipeline Issues and PRs that pertain to the codepipeline service.
Projects
None yet
Development

No branches or pull requests

3 participants