y13i / cfn-schema Goto Github PK
View Code? Open in Web Editor NEWJSON Schema for AWS CloudFormation templates.
License: MIT License
JSON Schema for AWS CloudFormation templates.
License: MIT License
Integer should accept "123"
in addition to 123
.
Boolean should accept "true"
in addition to true
.
Many existing templates are written in that style and they work.
I set https://y13i.github.io/cfn-schema/ap-northeast-1.json
to yaml.schemas
in VSCode, and open a CFn template yaml file then this problem is reported.
$ref '/properties/Resources/definitions/propertyTypes/AWS::ResourceGroups::Group.Json' in 'https://y13i.github.io/cfn-schema/ap-northeast-1.json' can not be resolved.
settings.json
{
"yaml.schemas": {
"https://y13i.github.io/cfn-schema/ap-northeast-1.json": "*.yaml"
}
}
sample.yaml
AWSTemplateFormatVersion: "2010-09-09"
Mappings:
RegionMap:
us-east-1:
AMI: "ami-0ff8a91507f77f867"
us-west-1:
AMI: "ami-0bdb828fd58c52235"
us-west-2:
AMI: "ami-a0cfeed8"
eu-west-1:
AMI: "ami-047bb4163c506cd98"
sa-east-1:
AMI: "ami-07b14488da8ea02a0"
ap-southeast-1:
AMI: "ami-08569b978cc4dfa10"
ap-southeast-2:
AMI: "ami-09b42976632b27e9b"
ap-northeast-1:
AMI: "ami-06cd52961ce9f0d85"
Parameters:
EnvType:
Description: Environment type.
Default: test
Type: String
AllowedValues: [prod, dev, test]
ConstraintDescription: must specify prod, dev, or test.
Conditions:
CreateProdResources: !Equals [!Ref EnvType, prod]
CreateDevResources: !Equals [!Ref EnvType, "dev"]
Resources:
EC2Instance:
Type: "AWS::EC2::Instance"
Properties:
ImageId: !FindInMap [RegionMap, !Ref "AWS::Region", AMI]
InstanceType:
!If [
CreateProdResources,
c1.xlarge,
!If [CreateDevResources, m1.large, m1.small],
]
MountPoint:
Type: "AWS::EC2::VolumeAttachment"
Condition: CreateProdResources
Properties:
InstanceId: !Ref EC2Instance
VolumeId: !Ref NewVolume
Device: /dev/sdh
NewVolume:
Type: "AWS::EC2::Volume"
Condition: CreateProdResources
Properties:
Size: 100
AvailabilityZone: !GetAtt EC2Instance.AvailabilityZone
I found that /properties/Resources/definitions/propertyTypes/AWS::ResourceGroups::Group.Json
is not defined in the JSON Schema file. Please help me to solve this problem.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
src/package.json
axios 1.6.1
ajv 8.12.0
jest 29.5.0
prettier 3.2.3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.