question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(CodePipeline-Actions): Event created from ECR-Action does not use the default value the ECR-Action is using

See original GitHub issue

When creating an ECR Action, CDK creates an CloudWatch event. I was expecting it to only listen on PutImage events for the latest tag since that is the default value provided by the docs and.

Instead the event listens on every tag.

Reproduction Steps

new EcrSourceAction({
      actionName: 'Image',
      repository,
      output: imageArtifact,
      variablesNamespace: 'ImageVariables',
    });

Creates an event that triggers for all PutImages regardless of the tag.

What did you expect to happen?

new EcrSourceAction({
      actionName: 'Image',
      repository,
      output: imageArtifact,
      variablesNamespace: 'ImageVariables',
      imageTag: 'latest',
    });

The event created by this check only the latest tag but I only inserted the tag that is provided by default.

What actually happened?

The CW event listens for all PutImage calls regardless of the tag.

Environment

  • CDK CLI Version : 1.95.1 (build ed2bbe6)
  • Framework Version: 1.95.1
  • Node.js Version: 15.12.0
  • OS : BigSur 11.2.3
  • Language (Version): TypeScript (3.8.3)

Other

If the described behaviour is the desired one I can create a PR for it. 😃

This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
sparten11740commented, Nov 2, 2021

@skinny85 only today found the time to work on this, opened a PR with a proposed solution

0reactions
skinny85commented, Oct 29, 2021

@sparten11740 any chance you would be willing top open us a PR adding this feature? It should be relatively straightforward. Check out our “Contributing guide” for some info on how to get started with CDK development.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting CodePipeline - AWS Documentation
Problem: The service role for CodePipeline does not have sufficient permissions for ... For instructions on creating event rules for an Amazon ECR...
Read more >
Appendix A: GitHub version 1 source actions - 亚马逊云科技
Triggers the pipeline when a new commit is made on the configured GitHub repository and branch. To integrate with GitHub, CodePipeline uses an...
Read more >
Part 3: CI/CD Pipeline with AWS CodePipeline ... - YouTube
Series: Configure and deploy .NET applications with a CI/CD pipeline using managed services from AWS In part 3, learn how to implement a ......
Read more >
How to create a CodePipeline with source from another AWS ...
When using AWS services, more often than not, we need multiple AWS accounts for ... IAM role from Account-A will be used for...
Read more >
Tuning Your NLU Model - Rasa
If you are getting started with a one of spaCy's supported languages, ... There are components for entity extraction, for intent ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found