Skip to content

Amazon Web Services (AWS) Pulumi resource package provided by cloudacode

License

Notifications You must be signed in to change notification settings

cloudacode/pulumi-aws-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pulumi AWS Go Package by Cloudacode

Amazon Web Services (AWS) Pulumi resource package provided by cloudacode

Go Report Card GoDoc

How to use it

Prerequisites

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/pulumi-aws-go@v0.4.0

Now, open main.go and start coding!

Example code

VPC Provisioning with Dynamic IP allocation

To automate VPC provisioning via IPAM, you need to:

  1. Use the aws.VpcRunIpam function to provision VPC resource
  2. 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:

  1. Use the aws.FargateRun function to deploy ECS Fargate resource
  2. 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!!!

About

Amazon Web Services (AWS) Pulumi resource package provided by cloudacode

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages