# README
Pulumi AWS Go Package by Cloudacode
Amazon Web Services (AWS) Pulumi resource package provided by cloudacode
How to use it
Prerequisites
- 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 a Pulumi Project
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
Import Package
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/[email protected]
Now, open main.go
and start coding!
Example code
VPC Provisioning with Dynamic IP allocation
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.
ECS Fargete Deployment
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!!!
# Packages
No description provided by the author