Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ECO-2673] Implement emojicoin arena CloudFormation indexing #516

Merged
merged 2 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions src/cloud-formation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,18 @@ indexer deployments.
`/emojicoin/package-address/<mainnet|testnet|devnet>`

</td><td>
The address of the Move package you want to index.
</td></tr></table>

The address of the [`emojicoin dot fun`] Move package you want to index.

</td></tr><tr><td>

`/emojicoin/arena-package-address/<mainnet|testnet|devnet>`

</td><td>

The address of the [`emojicoin arena`] Move package you want to index.

</td></tr></table>

<!-- markdownlint-enable MD033 -->

Expand Down Expand Up @@ -563,4 +573,6 @@ REST and WebSocket endpoints.
[web acl traffic overview dashboards]: https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-dashboards.html
[web application firewall]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html
[`ecr::getauthorizationtoken`]: https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_GetAuthorizationToken.html
[`emojicoin arena`]: ../move/emojicoin_arena
[`emojicoin dot fun`]: ../move/emojicoin_dot_fun
[`rain`]: https://github.com/aws-cloudformation/rain
30 changes: 15 additions & 15 deletions src/cloud-formation/deploy-indexer-fallback.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---
parameters:
BrokerCpu: 1024
BrokerImageVersion: '2.0.1'
BrokerImageVersion: '2.1.1'
BrokerMemory: 2048
DbMaxCapacity: 8
DeployAlb: 'false'
DeployAlbDnsRecord: 'false'
DeployBastionHost: 'false'
DeployBroker: 'false'
DeployContainers: 'false'
DeployDb: 'false'
DeployNlb: 'false'
DeployNlbVpcLink: 'false'
DeployPostgrest: 'false'
DeployProcessor: 'false'
DeployRestApi: 'false'
DeployRestApiDnsRecord: 'false'
DeployStack: 'false'
DeployAlb: 'true'
DeployAlbDnsRecord: 'true'
DeployBastionHost: 'true'
DeployBroker: 'true'
DeployContainers: 'true'
DeployDb: 'true'
DeployNlb: 'true'
DeployNlbVpcLink: 'true'
DeployPostgrest: 'true'
DeployProcessor: 'true'
DeployRestApi: 'true'
DeployRestApiDnsRecord: 'true'
DeployStack: 'true'
DeployWaf: 'false'
EnableWafRulesGeneral: 'false'
EnableWafRulesRestApi: 'false'
EnableWafRulesWebSocket: 'false'
Environment: 'fallback'
Network: 'mainnet'
ProcessorImageVersion: '2.0.1'
ProcessorImageVersion: '2.1.1'
VpcStackName: 'emoji-vpc'
tags: null
template-file-path: 'src/cloud-formation/indexer.cfn.yaml'
Expand Down
30 changes: 15 additions & 15 deletions src/cloud-formation/deploy-indexer-main.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
---
parameters:
BrokerImageVersion: '2.0.1'
DeployAlb: 'false'
DeployAlbDnsRecord: 'false'
DeployBastionHost: 'false'
DeployBroker: 'false'
DeployContainers: 'false'
DeployDb: 'false'
DeployNlb: 'false'
DeployNlbVpcLink: 'false'
DeployPostgrest: 'false'
DeployProcessor: 'false'
DeployRestApi: 'false'
DeployRestApiDnsRecord: 'false'
DeployStack: 'false'
BrokerImageVersion: '2.1.1'
DeployAlb: 'true'
DeployAlbDnsRecord: 'true'
DeployBastionHost: 'true'
DeployBroker: 'true'
DeployContainers: 'true'
DeployDb: 'true'
DeployNlb: 'true'
DeployNlbVpcLink: 'true'
DeployPostgrest: 'true'
DeployProcessor: 'true'
DeployRestApi: 'true'
DeployRestApiDnsRecord: 'true'
DeployStack: 'true'
DeployWaf: 'false'
EnableWafRulesGeneral: 'false'
EnableWafRulesRestApi: 'false'
EnableWafRulesWebSocket: 'false'
Environment: 'main'
Network: 'testnet'
ProcessorImageVersion: '2.0.1'
ProcessorImageVersion: '2.1.1'
VpcStackName: 'emoji-vpc'
tags: null
template-file-path: 'src/cloud-formation/indexer.cfn.yaml'
Expand Down
30 changes: 15 additions & 15 deletions src/cloud-formation/deploy-indexer-production.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---
parameters:
BrokerCpu: 1024
BrokerImageVersion: '2.0.1'
BrokerImageVersion: '2.1.1'
BrokerMemory: 2048
DbMaxCapacity: 8
DeployAlb: 'false'
DeployAlbDnsRecord: 'false'
DeployBastionHost: 'false'
DeployBroker: 'false'
DeployContainers: 'false'
DeployDb: 'false'
DeployNlb: 'false'
DeployNlbVpcLink: 'false'
DeployPostgrest: 'false'
DeployProcessor: 'false'
DeployRestApi: 'false'
DeployRestApiDnsRecord: 'false'
DeployStack: 'false'
DeployAlb: 'true'
DeployAlbDnsRecord: 'true'
DeployBastionHost: 'true'
DeployBroker: 'true'
DeployContainers: 'true'
DeployDb: 'true'
DeployNlb: 'true'
DeployNlbVpcLink: 'true'
DeployPostgrest: 'true'
DeployProcessor: 'true'
DeployRestApi: 'true'
DeployRestApiDnsRecord: 'true'
DeployStack: 'true'
DeployWaf: 'false'
EnableWafRulesGeneral: 'false'
EnableWafRulesRestApi: 'false'
EnableWafRulesWebSocket: 'false'
Environment: 'production'
Network: 'mainnet'
ProcessorImageVersion: '2.0.1'
ProcessorImageVersion: '2.1.1'
VpcStackName: 'emoji-vpc'
tags: null
template-file-path: 'src/cloud-formation/indexer.cfn.yaml'
Expand Down
3 changes: 3 additions & 0 deletions src/cloud-formation/indexer.cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,9 @@ Resources:
- Name: 'EMOJICOIN_MODULE_ADDRESS'
Value: !Sub
'{{resolve:ssm:/emojicoin/package-address/${Network}}}'
- Name: 'EMOJICOIN_ARENA_MODULE_ADDRESS'
Value: !Sub
'{{resolve:ssm:/emojicoin/arena-package-address/${Network}}}'
- Name: 'WS_PORT'
Value: !FindInMap
- 'Constants'
Expand Down
2 changes: 1 addition & 1 deletion src/move/emojicoin_arena/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- cspell:word gamified -->

# Emojicoin arena
# emojicoin arena

## Overview

Expand Down
Loading