OK, so in this lecture, we're going to look at how to create an rule which you will need in order
to use Amazon's forecasting service, at this point, I'm going to assume you've done all the necessary
work to sign up for an account, add your credit card information and so forth.
You should also have your credentials stored in the path shown here, or you can pass in your credentials
directly using Boto three if you don't know how to get your credentials.
Let's briefly go over how that can be done.
Once you have your credentials, there are several ways you can use them and I'll explain two of these
options in this lecture.
Option number one, create a plain text file at home directory Slashdot, Adewusi credentials inside
this file, paste your credentials using the format shown here option number to pass your credentials
into boats of three directly in the code.
So, for example, if you want to create an S3 client object, this takes into arguments Adewusi Access
Kid and Adewusi Secret Access Key.
Of course, these correspond to the two items we were shown earlier.
OK, so these are two options for how to use your credentials with Boto three.
The next step is to create your IAMGOLD specifically for the forecast to service.
OK, so first, once you're in the U.S. consul, we're going to go to the search box and here I am to
take us to the page for the erm service.
Once you're there, we're going to click on rolls on the left side menu.
On the Royals page, you'll see a list of existing roles.
What you want to do now is click the button to create a new role.
OK, so on the next page, under trust identity, you want the default option, which is eight of US
service, since we're creating this role for an eight of US service.
For use case, you want to scroll down or do a search on the page for the word forecast.
So click on that and then click to go to the next page, which is about permissions.
For this page, basically the only permission that the forecast world needs is access to S3, since
that's where our data is stored.
For me, this was selected automatically, so there was nothing else to do.
So click on the next button again to go to the tags page.
Since I don't need any tags, I'm going to click next again to go to the review page.
On the review page, you can review all the options you've selected and also select a name for your
role, since I already have a forecast role.
I'm going to create a new name, which will be my forecast roll to.
Next, you click on Create Role to complete the process.
So this will bring you back to your list of roles, and if you scroll down, you should be able to see
the role you just created.
The last thing we need to do is grab some information for our script, specifically, we need the R.N.
for the role we just created.
So what is an air in hÉireann stands for Amazon resource to name basically everything in Adewusi has
an Amazon resource name.
You can think of it like an ID to identify different entities within HWC.
You'll see that nearly everything we create in the coming scripts will have friends.
So this is just a way to identify things.
So on this next page, copy down the Aaryn for your role and Save It for the notebook will be looking
at next.