vincentliu104 / Learning-Together

10 stars 0 forks source link

CloudFormation 教學 #64

Open vincentliu104 opened 4 years ago

vincentliu104 commented 4 years ago

主題

Template

# create
Resources:
  HelloBucket:
    Type: AWS::S3::Bucket
# update
Resources:
  HelloBucket:
    Type: AWS::S3::Bucket
    Properties:
      AccessControl: PublicRead
# update
Parameters: 
  BucketAccessControl:
    Type: String
    Default: Private
    AllowedValues:
      - Private
      - PublicRead
      - BucketOwnerRead
      - BucketOwnerFullControl

Resources:
  HelloBucket:
    Type: AWS::S3::Bucket
    DeletionPolicy: Retain
    Properties:
      AccessControl: !Ref BucketAccessControl

Issue

unknown tag

https://github.com/adamvoss/vscode-yaml/issues/16

"yaml.customTags": [
  "!Equals sequence",
  "!FindInMap sequence",
  "!GetAtt",
  "!GetAtt sequence",
  "!GetAZs",
  "!ImportValue",
  "!Join sequence",
  "!Ref",
  "!Select sequence",
  "!Split sequence",
  "!Sub",
  "!Base64 mapping"
  ]

Reference