You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pipenv run cfn-lint --template ./test/success/sc-product.yaml
on the reproduction template I receive an E1040 error message:
E1040 {'Fn::GetAtt': ['VpcProduct', 'Outputs.VpcId']} that does not match 'AWS::EC2::VPC.Id'
test/success/sc-product.yaml:28:7
Expected behavior
I would think the !GetAtt VpcProduct.Outputs.VpcId should be allowed as the value for the VpcId property on the AWS::EC2::VpcEndpoint resource.
Would the fix be to add AWS::ServiceCatalog::CloudFormationProvisionedProduct resource type to the exclusions like #3346 did? I could try a PR for that if that's the solution.
Reproduction template
AWSTemplateFormatVersion: "2010-09-09"Description: Create a VPC from Service CatalogParameters:
VpcName:
Type: StringDescription: The name of the VPCVpcSize:
Type: StringDescription: Size of the VPCResources:
VpcProduct:
Type: AWS::ServiceCatalog::CloudFormationProvisionedProductProperties:
ProductId: "{{resolve:ssm:/org/sfg/servicecatalog/product_ids/vpc:1}}"ProvisioningArtifactName: v1.0.0ProvisioningParameters:
- Key: VpcNameValue: !Ref VpcName
- Key: VpcSizeValue: !Ref VpcSizeDynamoDbEndpoint:
Type: AWS::EC2::VPCEndpointProperties:
ServiceName: !Sub com.amazonaws.${AWS::Region}.dynamodbVpcId: !GetAtt VpcProduct.Outputs.VpcIdRouteTableIds:
- !GetAttVpcProduct.Outputs.PrivateSubnetRouteTable
The text was updated successfully, but these errors were encountered:
CloudFormation Lint Version
cfn-lint 1.5.1
What operating system are you using?
Amazon Linux
Describe the bug
When running this command:
on the reproduction template I receive an
E1040
error message:Expected behavior
I would think the
!GetAtt VpcProduct.Outputs.VpcId
should be allowed as the value for theVpcId
property on theAWS::EC2::VpcEndpoint
resource.Would the fix be to add
AWS::ServiceCatalog::CloudFormationProvisionedProduct
resource type to the exclusions like #3346 did? I could try a PR for that if that's the solution.Reproduction template
The text was updated successfully, but these errors were encountered: