CloudWarGames.com Async Challenge - Beginner 4


CloudWarGames.com Async Challenge - Beginner 4

CloudWarGames.com Async Challenge - Beginner 4

(Sorry there was supposed to be a video with today's Challenge but Descript, the tool I used, really screwed the pooch on it so were sending it with out the video).

Download:

This one had about 5 files in it, so I had to zip it. You should be able to Download Them Here.

Setup:

This one is really simple to set up. No custom variables are needed unless you want to get fancy. Just run the following:

terraform apply

If you spin this up correctly you should see a variable called "TEMP" here(unless you changed its name): https://console.aws.amazon.com/systems-manager/parameters

This has a default value of I AM STILL BROKEN. Ideally this will change once you fix today's problem.

Technical Notes:

The resources in this one border on "Intermediate" level. If you are a beginner don't let that get you, it should still be simple to spin up and there is only one problem with it designed for a beginner audience.

The default code for the Lambda that gets spun up is in the ./tf/build/index.js.

Warning:

This spins up a VPC and NAT gateway that you get charged for hourly. It costs about $30 a month but feel free to double-check me on that.

It also spins up a CloudWatch Event Rule that executes the Lambda every 1 Minute this is up. Unless you are outside the free tier of invocations you shouldn't even see this expense or it will be a few pennies.

Again please familiarize yourself with the AWS pricing structure for all technologies used in the async challenges.

Brief:

ExplodeMe Inc needs to get really important information from an API and store it locally on our platform for caching purposes.

We do this by having a Lambda that runs every 1 minute. That Lambda is triggered by a CloudWatch Event Rule.

Once we retrieve this vital piece of information from the 3rd party API we then store it in AWS SSM Param Store.

Recently something happened and it is no longer functioning.

It is your job to figure out what caused this outage and fix it.

HINT:

The problem is NOT in the lambda code.

If you get stuck email me and I can give you more hints.

Definition Of Done:

The lambda will finish its run and the SSM Param we spun up will no longer have a value of I AM STILL BROKEN.

If you are good at javascript code it will be possible to guess this value by looking at that so guessing the value of that code is not enough.

When you are done email me the value of the SSM Param and the changes you need to make to get the lambda to run smoothly.

Note:

I supplied an API key to weatherstack.com which is the API we are hitting.

There is a small chance that enough people are going to hit that API using my key that it gets flagged. If that happens just go to weatherstack.com and grab a new key(They are free).

Then pass it in to the Terraform Apply like as follows:

terraform apply -var='weatherstack_api_key={your new key}'

But replace {your new key} with the new key.

Teardown:

To spin this down run

terraform apply -destroy

Prizes:

By the way, I am launching Cloud War Game Leagues in the future which is a paid product(League Fees). More on that coming soon.

If you correctly solve this and send me the correct solution I have 3 Month "Season Passes" for the CWG League that I will be awarding as a prize for solving this challenge.

The Season Pass will get you 3 free months of access to the League.

Email me fast though as there are only a limited amount.