Skip to content

Commit

Permalink
ci: add env from secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
montoyaobeso committed Jun 10, 2024
1 parent 9f9dad2 commit d178bd5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ Resources:
Type: HttpApi
Properties:
ApiId: !Ref Api
Policies:
Policies:
- AWSSecretsManagerGetSecretValuePolicy:
SecretArn: !Sub 'arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:stori*'
Expand Down Expand Up @@ -106,13 +105,27 @@ Resources:
BuildCommand: "pip install -r requirements.txt"
StartCommand: "python server.py"
Port: 8080
RuntimeEnvironmentVariables:
-
Name: SERVER_PORT
Value: 8080
-
Name: STAGE
Value: !Ref Stage
-
Name: BUCKET_NAME
Value: !Ref BucketName
-
Name: SECRET_NAME
Value: !Ref SecretName
RuntimeEnvironmentSecrets:
-
Name: app-runner-secrets
Value: "arn:aws:secretsmanager:us-west-2:339713191966:secret:stori-app-runner-secrets-6Zk2vI"
Value: "arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:stori-app-runner-secrets-6Zk2vI"
InstanceConfiguration:
Cpu: 1 vCPU
Memory: 2 GB
InstanceRoleArn: !Sub "arn:aws:iam::${AWS::AccountId}:role/stori-instance-role-app-runner-${Stage}"

Outputs:
ApiUrl:
Expand Down

0 comments on commit d178bd5

Please sign in to comment.