Amazon Web Services (AWS) Pulumi resource package provided by cloudacode
- Golang version 1.18 or above. You can follow the instructions in the official installation page (check it by
go version
) - Pulumi. You can fllow the instructions in the official installation page
Create and move to directory which is your project workspace
mkdir pulumi-aws-project && cd pulumi-aws-project
Please login pulumi backend to store your state
pulumi login
First, you can to use go get
to fetch the latest
package or any git tag version. The git tags are available in release page. Take v0.4.0
as an example:
# fetch the latest version
go get github.com/cloudacode/pulumi-aws-go
# or explicit target version
go get github.com/cloudacode/pulumi-aws-go@v0.4.0
Now, open main.go
and start coding!
To automate VPC provisioning via IPAM, you need to:
- Use the
aws.VpcRunIpam
function to provision VPC resource - Set the arguments as
ctx *pulumi.Context, prefixName, ipamID, ipamPoolId, netMaskLength
on the function.
Please check some examples in the getting started vpc.
To deploy ECS Fargate via Pulumi, you need to:
- Use the
aws.FargateRun
function to deploy ECS Fargate resource - Set the arguments as
ctx *pulumi.Context, vpcId, prefixName, imageUrl string, containerPort int
on the function.
Please check some examples in the getting started fargate.
🌟🌟 Enjoy!!!