Skip to content

Commit

Permalink
ci: test apprunner yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
montoyaobeso committed Jun 10, 2024
1 parent a366f37 commit e530a51
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 22 deletions.
20 changes: 20 additions & 0 deletions apprunner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 1.0
runtime: python311
build:
commands:
build:
- pip3 install -r requirements.txt
- pipenv install

run:
runtime-version: 3.11
command: python3 server.py
network:
port: 8000
env: SERVER_PORT
env:
- name: STAGE
value: "dev"
secrets:
- name: APP
value-from: "arn:aws:secretsmanager:us-west-2:339713191966:secret:stori-app-secrets-dev-SlWppu"
44 changes: 22 additions & 22 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,28 +104,28 @@ Resources:
Value: !Ref Stage
CodeConfiguration:
ConfigurationSource: REPOSITORY
CodeConfigurationValues:
Runtime: PYTHON_3
BuildCommand: "pip3 install -r requirements.txt"
StartCommand: "python3 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: !Sub "arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:stori-app-runner-secrets-6Zk2vI"
# CodeConfigurationValues:
# Runtime: PYTHON_3
# BuildCommand: "pip3 install -r requirements.txt"
# StartCommand: "python3 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: !Sub "arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:stori-app-runner-secrets-6Zk2vI"


Outputs:
Expand Down

0 comments on commit e530a51

Please sign in to comment.