Skip to content

Commit eb3b04c

Browse files
authored
Remove format patching for Cloud9 ImageId (#4255)
1 parent 0340f2a commit eb3b04c

File tree

15 files changed

+41
-8
lines changed

15 files changed

+41
-8
lines changed

.github/workflows/ci-pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,4 @@ jobs:
7777
GHSA-r9hx-vwmv-q579
7878
PYSEC-2022-43012
7979
PYSEC-2024-60
80+
GHSA-4xh5-x5gv-qwph

scripts/update_schemas_format.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ def main():
382382
)
383383

384384
for path in _descend(obj, ["ImageId", "AmiId"]):
385+
if resource_type == "AWS::Cloud9::EnvironmentEC2" and path == deque(
386+
["properties", "ImageId"]
387+
):
388+
continue
385389
if path[-2] == "properties":
386390
resource_patches.append(
387391
_create_patch(

src/cfnlint/data/schemas/patches/extensions/all/aws_bedrockagentcore_runtime/__init__.py

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"op": "add",
4+
"path": "/definitions/RoleArn/format",
5+
"value": "AWS::IAM::Role.Arn"
6+
}
7+
]

src/cfnlint/data/schemas/patches/extensions/all/aws_cloud9_environmentec2/format.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
[
2-
{
3-
"op": "add",
4-
"path": "/properties/ImageId/format",
5-
"value": "AWS::EC2::Image.Id"
6-
},
72
{
83
"op": "add",
94
"path": "/properties/SubnetId/format",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"op": "add",
4+
"path": "/definitions/ManagedServices/properties/ZeroEtlAccess/properties/Cidr/format",
5+
"value": "ipv4-network"
6+
}
7+
]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[
2+
{
3+
"op": "add",
4+
"path": "/definitions/CloudWatchLogsDestination/properties/IamRoleArn/format",
5+
"value": "AWS::IAM::Role.Arn"
6+
},
7+
{
8+
"op": "add",
9+
"path": "/definitions/KinesisFirehoseDestination/properties/IamRoleArn/format",
10+
"value": "AWS::IAM::Role.Arn"
11+
}
12+
]

src/cfnlint/data/schemas/patches/extensions/all/aws_workspacesinstances_workspaceinstance/format.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@
88
"op": "add",
99
"path": "/properties/ManagedInstance/properties/ImageId/format",
1010
"value": "AWS::EC2::Image.Id"
11+
},
12+
{
13+
"op": "add",
14+
"path": "/properties/ManagedInstance/properties/SubnetId/format",
15+
"value": "AWS::EC2::Subnet.Id"
1116
}
1217
]

src/cfnlint/data/schemas/providers/cn_north_1/aws-cloud9-environmentec2.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"type": "string"
6464
},
6565
"ImageId": {
66-
"format": "AWS::EC2::Image.Id",
6766
"type": "string"
6867
},
6968
"InstanceType": {

src/cfnlint/data/schemas/providers/cn_northwest_1/aws-cloud9-environmentec2.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"type": "string"
6464
},
6565
"ImageId": {
66-
"format": "AWS::EC2::Image.Id",
6766
"type": "string"
6867
},
6968
"InstanceType": {

0 commit comments

Comments
 (0)