aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap

AWS::EC2::VPC - Tags not recognized by drift detection when there is no Tags Property

Open
#995 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

### Name of the resource

AWS::EC2::VPC

### Resource Name

_No response_

### Issue Description

AWS::EC2::VPC - issue with tags and drift detection
When the resource AWS::EC2::VPC is created without 'Tags' property in the template.

### Expected Behavior

Manually added tags from VPC console should cause MODIFIED Drift status.

### Observed Behavior

if the resource AWS::EC2::VPC is created without 'Tags' property in the template, then manually add / modify tags from VPC console.
it still shows IN_SYNC which is incorrect.

Only when an AWS::EC2::VPC resource is created with 'Tags' property, the Drift status would show MODIFIED as expected.

### Test Cases

1. Create AWS resource AWS::EC2::VPC
```
Resources:
myVPC:
Type: 'AWS::EC2::VPC'
Properties:
CidrBlock: 10.0.0.0/16
```
2. Goto VPC console and add a Tag
3. Run Drift detection.

### Other Details

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.