This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.8' | |
| services: | |
| app: | |
| image: myapp:latest | |
| environment: | |
| - AWS_ACCESS_KEY_ID=AKIAS4GICAGI6V7W7Z5J | |
| - AWS_SECRET_ACCESS_KEY=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 | |
| - AWS_REGION=us-east-1 | |
| ports: | |
| - "8080:8080" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Application Configuration | |
| app: | |
| name: myapp | |
| environment: production | |
| aws: | |
| access_key_id: AKIA6MXQCCSZZLZ3QKZD | |
| secret_access_key: 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 | |
| region: us-east-1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Application configuration | |
| NODE_ENV=production | |
| AWS_ACCESS_KEY_ID=AKIAXNNM2ZLEIX6MSUB6 | |
| AWS_SECRET_ACCESS_KEY=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 | |
| AWS_REGION=us-east-1 | |
| DATABASE_URL=postgres://localhost/app | |
| REDIS_URL=redis://localhost:6379 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # AWS Configuration | |
| export AWS_ACCESS_KEY_ID="AKIA6BKTREYB73G2FVO7" | |
| export AWS_SECRET_ACCESS_KEY="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" | |
| export AWS_DEFAULT_REGION="us-east-1" | |
| echo "Configuring AWS CLI..." | |
| aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| provider "aws" { | |
| region = "us-east-1" | |
| access_key = "AKIAYHQRCW2OJE4F5EXO" | |
| secret_key = "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" | |
| } | |
| terraform { | |
| backend "s3" { | |
| bucket = "terraform-state-bucket" | |
| key = "state/terraform.tfstate" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # AWS Configuration | |
| aws.accessKeyId=AKIAY7JFSFF4VVYLMUNT | |
| aws.secretAccessKey=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 | |
| aws.region=us-east-1 | |
| # Application Settings | |
| app.name=myapp | |
| app.port=8080 | |
| server.servlet.context-path=/api |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # AWS Configuration | |
| export AWS_ACCESS_KEY_ID="AKIAZ5XRDXHRVY6A5SW5" | |
| export AWS_SECRET_ACCESS_KEY="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" | |
| export AWS_DEFAULT_REGION="us-east-1" | |
| echo "Configuring AWS CLI..." | |
| aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "aws": { | |
| "accessKeyId": "AKIAXRUDEU6TG6R44Z7K", | |
| "region": "us-east-1", | |
| "secretAccessKey": "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" | |
| }, | |
| "database": { | |
| "host": "localhost", | |
| "name": "myapp", | |
| "port": "5432" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| provider "aws" { | |
| region = "us-east-1" | |
| access_key = "AKIAYNPCQKVTZRWSTCSE" | |
| secret_key = "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" | |
| } | |
| terraform { | |
| backend "s3" { | |
| bucket = "terraform-state-bucket" | |
| key = "state/terraform.tfstate" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to AWS | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: |