pulumi script to spinup and setup any AWS VM #139 #159
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Pulumi script to automate the deployment of DiceDB on AWS.
How to Run the Script
Configure AWS credentials:
Create and activate a virtual environment:
Install requirements:
Create a new Pulumi stack or use an existing one:
Review and update inputs in the Pulumi config file (
Pulumi.<stack-name>.yaml
)Preview the changes:
Deploy the infrastructure:
Implementation Details
Testing Results
The deployment successfully creates the infrastructure and installs DiceDB. However, there's a connectivity issue:
systemctl status dicedb
shows the service as active and runningtest script:
Test Script Output
I'd appreciate any insights or suggestions on addressing the connection timeout issue, as well as any improvements to the infrastructure setup or DiceDB configuration.
Note on S3 Backend
This Pulumi project uses an S3 backend for state management. Important: Ensure that the specified S3 bucket (
dice-pulumi
/any suitable bucketname) is created before running the Pulumi script. Alternatively we can use the pulumi cloud for storing the state.