Skip to content

Commit

Permalink
Fix cloudformation build
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmarshall committed Sep 10, 2024
1 parent dad7525 commit ce81904
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .aws/pondo-bot-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Parameters:
Description: The latest image tag to be used for the Docker image
Type: String
Default: tag
BranchName:
Description: The branch name of the GitHub repository
Type: String
Default: main

Resources:
PondoInstanceProfile:
Expand All @@ -23,7 +27,7 @@ Resources:
PondoBotInstance:
Type: 'AWS::EC2::Instance'
Properties:
InstanceType: 'c6a.2xlarge'
InstanceType: 'c6a.large'
IamInstanceProfile: !Ref PondoInstanceProfile
ImageId: !Ref PondoBotAMIId
SecurityGroupIds:
Expand All @@ -48,7 +52,7 @@ Resources:
docker run -d --restart always -p 80:80 -p 443:443 ${PondoBotRepository}:${LatestTag}
Tags:
- Key: Name
Value: PondoBotInstance
Value: !Join ['', ['PondoBot-', !Ref 'BranchName']]
- Key: AccessControl
Value: PondoBot

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
environment: Mainnet
region: 'us-east-2'
github_actions_role: 'pondo-bot-role'
network: 'TestnetV0'
network: 'MainnetV0'
rpc_url: 'https://mainnet.aleorpc.com'
client_url: 'https://mainnet.aleorpc.com'
epoch_blocks: '80888'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/provision-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@ jobs:
capabilities: 'CAPABILITY_NAMED_IAM'
no-fail-on-empty-changeset: "1"
parameter-overrides: >-
LatestTag=${{ steps.rename-pondo-bot-image.outputs.pondo-bot-image-tag }}
LatestTag=${{ steps.rename-pondo-bot-image.outputs.pondo-bot-image-tag }}
BranchName=${{ env.BRANCH_NAME }}

0 comments on commit ce81904

Please sign in to comment.