Untitled

 avatar
unknown
plain_text
3 years ago
677 B
4
Indexable

# exercise two: hello world

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Serverless Stack
Resources:
  hello:
    Type: AWS::Serverless::Function
    Properties:
      Runtime: python3.9
      Handler: lambda.hello
      CodeUri: src/
      Events:
        Hello:
          Type: Api
          Properties:
            Path: /
            Method: get

# package:
# aws cloudformation package --template-file template.yml --s3-bucket instruqt-YOUR_NAME --output-template-file packaged-template.yml

# deploy:
# aws cloudformation deploy --template-file /root/packaged-template.yml --stack-name instruqt --capabilities CAPABILITY_IAM
Editor is loading...