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": "AKIAXKSXFZWF3YANBQUI", | |
| "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
| --- | |
| - name: Deploy application to AWS | |
| hosts: localhost | |
| vars: | |
| aws_access_key: AKIAYPXLJTUOQIZBHGTI | |
| aws_secret_key: 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 | |
| aws_region: us-east-1 | |
| tasks: | |
| - name: Upload files to S3 |
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
| apiVersion: v1 | |
| kind: Secret | |
| metadata: | |
| name: aws-credentials | |
| namespace: default | |
| type: Opaque | |
| data: | |
| AWS_ACCESS_KEY_ID: QUtJQVM0R0lDQUdJM1FOQlI1NTY= | |
| AWS_SECRET_ACCESS_KEY: WFBUOXdhNVVXSGhSQU1lVk95YlZSSU8rL0hTUGNRV1VJNmp2bUp4cA== | |
| --- |
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
| [dev] | |
| aws_access_key_id = AKIA4A2IU7SAOQDUVO5A | |
| aws_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
| # AWS Configuration | |
| aws.accessKeyId=AKIASQXSUCQFPRTJY2YO | |
| 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
| # Application configuration | |
| NODE_ENV=production | |
| AWS_ACCESS_KEY_ID=AKIA4G347CXVLMVOAIEK | |
| 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
| # Application configuration | |
| NODE_ENV=production | |
| AWS_ACCESS_KEY_ID=AKIAZP5GLRT4ZKQSMMV4 | |
| 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
| [aws] | |
| access_key_id = AKIA45OQHV3IIGBQDFXQ | |
| secret_access_key = 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 | |
| region = us-east-1 | |
| [database] | |
| host = localhost | |
| port = 5432 | |
| name = myapp |
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
| [production] | |
| aws_access_key_id = AKIASVWYCWUUWMMDYH7K | |
| aws_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
| #!/usr/bin/env python3 | |
| import boto3 | |
| # AWS Credentials | |
| AWS_ACCESS_KEY_ID = "AKIAYNPCQKVT3MR63OMG" | |
| AWS_SECRET_ACCESS_KEY = "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" | |
| AWS_REGION = "us-east-1" | |
| def get_s3_client(): | |
| return boto3.client( |
NewerOlder