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

Supported resource AWS::EC2::VPCGatewayAttachment can't be imported to stack

Open
#1,869 10 comments 43 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

### Name of the resource

Other

### Resource Name

AWS::EC2::VPCGatewayAttachment

### Issue Description

Existing resource AWS::EC2::VPCGatewayAttachment can't be imported to stack. There is a weird error with such description:
`READ operation is not supported`
image

### Expected Behavior

Reffering to:
https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/supported-resources.html
![image](https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/assets/11095842/6a5331b4-9175-43cc-a243-0eb8bbfe9a5d)
and
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-supported-resources.html
![image](https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/assets/11095842/80bd0d04-fd49-4b5e-964c-2c06d8a23a33)
Resource is supported by import. So, I should be able to import this resource into my cloudformation stack.

### Observed Behavior

Existing resource AWS::EC2::VPCGatewayAttachment can't be imported to stack. There is a weird error with such description:
`READ operation is not supported`
image

### Test Cases

I used such template file to import this resource:
```
Resources:
...
VpcVPCGWBF912B6E:
Type: AWS::EC2::VPCGatewayAttachment
Properties:
InternetGatewayId:
Ref: VpcIGWD7BA715C
VpcId:
Ref: Vpc8378EB38
DeletionPolicy: Retain
Metadata:
aws:cdk:path: CommonVpcStack/Vpc/VPCGW
...
```
And here is the import.json file that I provide with the template when creating a change set:
```
...
{
"ResourceType":"AWS::EC2::VPCGatewayAttachment",
"LogicalResourceId":"VpcVPCGWBF912B6E",
"ResourceIdentifier": {
"AttachmentType":"IGW",
"VpcId":"vpc-xxxxxxxxxxxxxxxxx"
}
},
...
```
I removed redundant information from it

### Other Details

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the CloudFormation resource-import documentation linked in the issue, then reproduce the behavior with the shown template and import.json entry for AWS::EC2::VPCGatewayAttachment. Done means confirming whether the documented import support matches the observed READ operation error and documenting or resolving that discrepancy.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.