A minimal Pulumi packages for provisioning a single AWS EC2 bucket using Python.
- An AWS account with permissions to create EC2.
- AWS credentials configured in your environment (for example via AWS CLI or environment variables).
- Python 3.6 or later installed.
- Pulumi CLI already installed and logged in.
- Setup the local environment:
mkdir -p ~/.pulumi-local-state
pulumi login file://$HOME/.pulumi-local-state
-
Follow the prompts to set your project name and AWS region (default:
eu-west-2
). -
Preview the planned changes:
pulumi preview
- Deploy the stack:
pulumi up
- Tear down when finished:
pulumi destroy
This template defines the following config value:
aws:region
(string) The AWS region to deploy resources into. Default:us-east-1
View or update configuration with:
pulumi config get aws:region
pulumi config set aws:region us-west-2
Retrieve outputs with:
pulumi stack output
If you have questions or need assistance:
- Pulumi Documentation: https://www.pulumi.com/docs/
- Community Slack: https://slack.pulumi.com/
- GitHub Issues: https://github.com/pulumi/pulumi/issues
Contributions and feedback are always welcome!