I attended the [Pulumi Challenge 01].
It is exciting because I love programming for Infrastructure as Code (IaC) and learning about any services in any cloud platform, such as AWS and Azure GCP.
What I learned from Pulumi challenge 01.
- How to create a Pulumi account.
- How to create a new AWS account.
- How to create a new Checkly account.
- How to install Pulumi CLI on my MacBook Pro using:
brew install pulumi
- How to install AWS CLI on my MacBook Pro using:
brew install awscli
- How to create Access Key and Secret from AWS account.
- How to create API Key from Checkly.
- How to find Account ID from Checkly.
- How to link Checkly key to Pulumi by using the below command.
pulumi config set checkly:apiKey <YOUR API KEY> --secret
pulumi config set checkly:accountId <YOUR ACCOUNT ID>
- How to set up an AWS profile using:
aws configure
- How to solve the problem of running the website because there are limits on the country that can display only from these countries which are ("US", "CA", "GB", "DE").
You can find the code below inside cdn-website > index.ts
I live in Singapore, so I can't open the website because AWS Cloudfront allows only specific regions. I can fix it by adding my country code.
Before
restrictions: {
geoRestriction: {
restrictionType: "whitelist",
locations: ["US", "CA", "GB", "DE"],
},
},
After
restrictions: {
geoRestriction: {
restrictionType: "whitelist",
locations: ["US", "CA", "GB", "DE", "SG"],
},
},
You can deploy all resources and pulumi projects using:
pulumi up
You can also clean up all resources and projects using:
pulumi destroy && pulumi stack rm <your environment>
Please feel free to see my video recording for more information.
You can also find my repo which includes everything you need for this challenge here.
Keep learning!!!
Top comments (0)