aws / aws/ec2-image-builder-roadmap

AWS Image Builder resources doesn't get the stack level tags from CFN.

Open
#94 2 comments 1 reaction 0 assignees View on GitHub
Proposed
Dominant language
No language data
Stars
35
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Name of the resource
AWS::ImageBuilder::ImagePipeline

Description
Created a stack for resource type AWS::ImageBuilder::ImagePipeline

Resources:
ImagePipelineAllParameters:
Type: 'AWS::ImageBuilder::ImagePipeline'
Properties:
Name: 'image-pipeline-name-2'
Description: 'description'
ImageRecipeArn: arn:aws:imagebuilder:us-east-1:12345678:image-recipe/amazon-linux-2-with-latest-ssm-agent/0.0.1
InfrastructureConfigurationArn: arn:aws:imagebuilder:us-east-1:12345678:infrastructure-configuration/amazon-linux-2-with-latest-ssm-agent-infrastructure-configuration
ImageTestsConfiguration:
ImageTestsEnabled: false
TimeoutMinutes: 90
Schedule:
ScheduleExpression: 'cron(0 0 * * ? *)'
PipelineExecutionStartCondition: 'EXPRESSION_MATCH_ONLY'
Status: 'DISABLED'
Tags:
Key: Name
# Value: test
# test1: value1
Applied stack level tags as 'test1: value1' while creating the stack.
Resource got created and no tags being applied to resource.
Commented out the above Tags part and updated my stack, Tags got applied. So stack level tags are not being applied during the CREATE nor UPDATE operation.

I have tested this behavior for other resource types for Image Builder and none of them applying the stack level tags. List of resource types for CFN as below.

AWS::ImageBuilder::Component
AWS::ImageBuilder::Image
AWS::ImageBuilder::ImageRecipe
AWS::ImageBuilder::InfrastructureConfiguration
AWS::ImageBuilder::DistributionConfiguration
AWS::ImageBuilder::ImagePipeline
AWS::ImageBuilder::ContainerRecipe
Other Details
Types for Tags in the Image Builder resource are Map of String where usually Tags would be a List of string.
Workaround at the moment applying tags at resource level. However, expecting to apply stack level tags to resources above.

Contributor guide

Open the contributing guide

Research direction

Reproduce the report with the provided AWS::ImageBuilder::ImagePipeline template and stack-level tag `test1: value1`, testing both CREATE and UPDATE operations. Compare the behavior with resource-level Tags and the other listed AWS::ImageBuilder resource types; done means stack-level tags are applied consistently or the limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.