Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
677 B
1
Indexable
Never

# 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