Open gautaz opened 2 months ago
My local test does not replicate this issue. Can you provide a region or stackid?
Yes, the region is eu-west-3
and here is the stack id:
arn:aws:cloudformation:eu-west-3:432287323027:stack/DevelopmentStack/9f88fb50-7c05-11ef-8392-0e9fe9bec705
if you try with the extracted sample template, do you still see the same issue? If so, can you share the stack id?
Max quota for VPC per region reached on our account. I am asking for a quota increase in order to test. The request is still pending.
I have just deployed a new stack with the following id:
arn:aws:cloudformation:eu-west-3:432287323027:stack/issue-2138/2b504a60-7d07-11ef-8cec-0eae10b2d427
The template is:
AWSTemplateFormatVersion: '2010-09-09'
Description: stack template
Resources:
VPC:
Properties:
CidrBlock: '172.50.0.0/16'
EnableDnsHostnames: true
EnableDnsSupport: true
Type: AWS::EC2::VPC
No drift is detected in this case so this means other resources probably need to be deployed to reproduce the issue.
If you need anymore testing, do not hesitate to ask.
EDIT: The full template reproducing the issue is quite large but I can provide it if needed.
We also have a smaller stack reproducing the issue:
arn:aws:cloudformation:eu-west-3:432287323027:stack/HubStack/9afb6ed0-7c03-11ef-8098-0ac092c2d633
Apart from the VPC, this stack also deploys private subnets with route tables and also some VPC endpoints.
Hope this helps.
Hello @wangcaro3793,
I have reproduced the issue with a minimal example. The issue occurs only when using Git Sync.
Here are the YAML files I did use on my Git repository:
stack/cfn-issue-2138/deployment.yaml
:
template-file-path: 'stack/cfn-issue-2138/template.yaml'
stack/cfn-issue-2138/template.yaml
:
AWSTemplateFormatVersion: '2010-09-09'
Description: cfn issue 2138 stack template
Resources:
VPC:
Properties:
CidrBlock: '172.50.0.0/16'
EnableDnsHostnames: true
EnableDnsSupport: true
Type: AWS::EC2::VPC
These have been used to deploy the following stack with Git Sync:
arn:aws:cloudformation:eu-west-3:432287323027:stack/CfnIssue2138/bbbefb50-7d61-11ef-9733-0655824fe323
And this stack also reproduces the drift issue on its VPC.
Hello @wangcaro3793, did you manage to reproduce the issue with Git Sync?
hi @gautaz I don't have git sync setup so I'm not sure. But thanks for identifying that this is an issue with Git Sync. I'll have to loop in different support.
Hello @wangcaro3793,
Do I need to keep the stacks which helped demonstrating the issue or is the issue now reproduced on AWS side? There is no problem in keeping them for a while, I just do not want to keep unused resources lingering without being ever used.
no need to keep the stack you can tear it down @gautaz
Name of the resource
AWS::EC2::VPC
Resource Name
No response
Issue Description
EDIT (2024-09-28): The issue only occurs if Git Sync is used.
AWS is detecting a drift on a newly created VPC with
EnableDnsHostnames
andEnableDnsSupport
set totrue
. The "Actual" output is missing both values.Expected Behavior
No drift should be detected.
Observed Behavior
Here is the drift report:
This is inconsistent with what is displayed in the VPC details:
Test Cases
EDIT (2024-09-28): The following template only reproduces the issue if the deployment is done with Git Sync.
Here is an extract of the provided template:
Other Details
No response