Skip to content

Instantly share code, notes, and snippets.

@bbachi
Created September 4, 2022 02:58
Show Gist options
  • Select an option

  • Save bbachi/73af72911f05ee7fd367cd844e8b788b to your computer and use it in GitHub Desktop.

Select an option

Save bbachi/73af72911f05ee7fd367cd844e8b788b to your computer and use it in GitHub Desktop.
ECR
WebApp:
Type: AWS::AppRunner::Service
Properties:
ServiceName: !Sub WebApp-${Environment}
SourceConfiguration:
AuthenticationConfiguration: !If
- NeedsAccessRole
- AccessRoleArn: !GetAtt AccessRole.Arn
- !Ref AWS::NoValue
AutoDeploymentsEnabled: true
ImageRepository:
ImageIdentifier: !Ref ContainerImage
ImageRepositoryType: !Ref ImageRepositoryType
ImageConfiguration:
Port: !Ref WebAppPort
RuntimeEnvironmentVariables:
- Name: API_WORKS_MESSAGE
Value: !Ref WelcomeMessage
InstanceConfiguration:
Cpu: 1 vCPU
Memory: 2 GB
Tags:
- Key: environment
Value: !Ref Environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment