Switch accounts

This commit is contained in:
Layla 2020-05-20 14:40:55 -04:00
parent 4f47f758e7
commit 7f5e6a1fec
No known key found for this signature in database
GPG Key ID: A494D9357BA1BE31
4 changed files with 16 additions and 16 deletions

View File

@ -70,9 +70,9 @@ jobs:
args: --follow-symlinks --delete args: --follow-symlinks --delete
env: env:
SOURCE_DIR: infrastructure/cloudformation SOURCE_DIR: infrastructure/cloudformation
AWS_REGION: "us-east-1" AWS_REGION: "us-east-2"
DEST_DIR: dt/stage/cloudformation DEST_DIR: stage/cloudformation
AWS_S3_BUCKET: sumu-stacks AWS_S3_BUCKET: dt-deployment-bucket
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Configure AWS Credentials - name: Configure AWS Credentials
@ -80,11 +80,11 @@ jobs:
with: with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1 aws-region: us-east-2
- name: Deploy to AWS CloudFormation - name: Deploy to AWS CloudFormation
uses: aws-actions/aws-cloudformation-github-deploy@v1 uses: aws-actions/aws-cloudformation-github-deploy@v1
with: with:
name: dt-infrastructure-stage name: dt-infrastructure-stage
template: infrastructure/cloudformation/dt/top.yaml template: infrastructure/cloudformation/dt/top.yaml
capabilities: "CAPABILITY_NAMED_IAM,CAPABILITY_IAM" capabilities: "CAPABILITY_NAMED_IAM,CAPABILITY_IAM"
parameter-overrides: VpcId=${{ secrets.VPC_ID }},SubDomain=stage.dt,Domain=${{ secrets.DOMAIN }},environment=stage,DockerTag=stage,release=stage,PublicSubnets=${{ secrets.SUBNET_IDS }} parameter-overrides: VpcId=${{ secrets.VPC_ID }},SubDomain=stage,Domain=${{ secrets.DOMAIN }},environment=stage,DockerTag=stage,release=stage,PublicSubnets=${{ secrets.SUBNET_IDS }}

View File

@ -19,8 +19,8 @@ jobs:
args: --follow-symlinks --delete args: --follow-symlinks --delete
env: env:
SOURCE_DIR: infrastructure/cloudformation SOURCE_DIR: infrastructure/cloudformation
AWS_REGION: "us-east-1" AWS_REGION: "us-east-2"
DEST_DIR: dt/develop/cloudformation DEST_DIR: develop/cloudformation
AWS_S3_BUCKET: sumu-stacks AWS_S3_BUCKET: dt-deployment-bucket
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

View File

@ -127,9 +127,9 @@ jobs:
args: --follow-symlinks --delete args: --follow-symlinks --delete
env: env:
SOURCE_DIR: infrastructure/cloudformation SOURCE_DIR: infrastructure/cloudformation
AWS_REGION: "us-east-1" AWS_REGION: "us-east-2"
DEST_DIR: dt/production/cloudformation DEST_DIR: production/cloudformation
AWS_S3_BUCKET: sumu-stacks AWS_S3_BUCKET: dt-deployment-bucket
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Configure AWS Credentials - name: Configure AWS Credentials
@ -137,7 +137,7 @@ jobs:
with: with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1 aws-region: us-east-2
- name: Deploy to AWS CloudFormation - name: Deploy to AWS CloudFormation
uses: aws-actions/aws-cloudformation-github-deploy@v1 uses: aws-actions/aws-cloudformation-github-deploy@v1
with: with:

View File

@ -61,7 +61,7 @@ Resources:
Condition: CreateDns Condition: CreateDns
Type: AWS::CloudFormation::Stack Type: AWS::CloudFormation::Stack
Properties: Properties:
TemplateURL: !Sub 'https://s3.${AWS::Region}.amazonaws.com/sumu-stacks/dt/${release}/cloudformation/dt/dns.yaml' TemplateURL: !Sub 'https://s3.${AWS::Region}.amazonaws.com/dt-deployment-bucket/${release}/cloudformation/dt/dns.yaml'
Parameters: Parameters:
environment: !Ref environment environment: !Ref environment
Domain: !Ref Domain Domain: !Ref Domain
@ -74,7 +74,7 @@ Resources:
LoadBalancing: LoadBalancing:
Type: AWS::CloudFormation::Stack Type: AWS::CloudFormation::Stack
Properties: Properties:
TemplateURL: !Sub 'https://s3.${AWS::Region}.amazonaws.com/sumu-stacks/dt/${release}/cloudformation/dt/load_balancing.yaml' TemplateURL: !Sub 'https://s3.${AWS::Region}.amazonaws.com/dt-deployment-bucket/${release}/cloudformation/dt/load_balancing.yaml'
Parameters: Parameters:
environment: !Ref environment environment: !Ref environment
release: !Ref release release: !Ref release
@ -84,7 +84,7 @@ Resources:
EcsCluster: EcsCluster:
Type: AWS::CloudFormation::Stack Type: AWS::CloudFormation::Stack
Properties: Properties:
TemplateURL: !Sub 'https://s3.${AWS::Region}.amazonaws.com/sumu-stacks/dt/${release}/cloudformation/cluster/top.yaml' TemplateURL: !Sub 'https://s3.${AWS::Region}.amazonaws.com/dt-deployment-bucket/${release}/cloudformation/cluster/top.yaml'
Parameters: Parameters:
Environment: !Ref environment Environment: !Ref environment
VpcId: !Ref VpcId VpcId: !Ref VpcId
@ -97,7 +97,7 @@ Resources:
TaskDefinition: TaskDefinition:
Type: AWS::CloudFormation::Stack Type: AWS::CloudFormation::Stack
Properties: Properties:
TemplateURL: !Sub 'https://s3.${AWS::Region}.amazonaws.com/sumu-stacks/dt/${release}/cloudformation/dt/task.yaml' TemplateURL: !Sub 'https://s3.${AWS::Region}.amazonaws.com/dt-deployment-bucket/${release}/cloudformation/dt/task.yaml'
Parameters: Parameters:
environment: !Ref environment environment: !Ref environment
LogGroupName: !Ref LogGroup LogGroupName: !Ref LogGroup