Skip to content

Commit

Permalink
ci: add app runner resource
Browse files Browse the repository at this point in the history
  • Loading branch information
montoyaobeso committed Jun 10, 2024
1 parent 1528508 commit adadef0
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,46 +82,46 @@ Resources:
VpcConnectorName: !Sub "${Project}-${Stage}"


# AppRunnerService:
# Type: AWS::AppRunner::Service
# Properties:
# ServiceName: !Sub "stori-api-app-runner"
# NetworkConfiguration:
# EgressConfiguration:
# EgressType: VPC
# VpcConnectorArn: !Ref AppRunnerVPCConnector
# SourceConfiguration:
# AuthenticationConfiguration:
# ConnectionArn: !Ref AppRunnerConnectionArn
# AutoDeploymentsEnabled: true
# CodeRepository:
# RepositoryUrl: "https://github.com/montoyaobeso/transactions-email-generator"
# SourceCodeVersion:
# Type: BRANCH
# Value: !Ref Stage
# CodeConfiguration:
# ConfigurationSource: API
# CodeConfigurationValues:
# Runtime: PYTHON_3
# BuildCommand: "pip install -r requirements.txt"
# StartCommand: "python server.py"
# Port: 8080
# RuntimeEnvironmentVariables:
# -
# Name: BUCKET_NAME
# Value: !Ref BucketName
# -
# Name: SECRET_NAME
# Value: !Ref SecretName
# -
# Name: STAGE
# Value: !Ref Stage
# -
# Name: PORT
# Value: 8080
# InstanceConfiguration:
# Cpu: 1 vCPU
# Memory: 2 GB
AppRunnerService:
Type: AWS::AppRunner::Service
Properties:
ServiceName: !Sub "stori-api-app-runner"
NetworkConfiguration:
EgressConfiguration:
EgressType: VPC
VpcConnectorArn: !Ref AppRunnerVPCConnector
SourceConfiguration:
AuthenticationConfiguration:
ConnectionArn: !Ref AppRunnerConnectionArn
AutoDeploymentsEnabled: true
CodeRepository:
RepositoryUrl: "https://github.com/montoyaobeso/transactions-email-generator"
SourceCodeVersion:
Type: BRANCH
Value: !Ref Stage
CodeConfiguration:
ConfigurationSource: API
CodeConfigurationValues:
Runtime: PYTHON_3
BuildCommand: "pip install -r requirements.txt"
StartCommand: "python server.py"
Port: 8080
RuntimeEnvironmentVariables:
-
Name: BUCKET_NAME
Value: !Ref BucketName
-
Name: SECRET_NAME
Value: !Ref SecretName
-
Name: STAGE
Value: !Ref Stage
-
Name: PORT
Value: 8080
InstanceConfiguration:
Cpu: 1 vCPU
Memory: 2 GB

Outputs:
ApiUrl:
Expand Down

0 comments on commit adadef0

Please sign in to comment.