Hello, could someone please point me to some docum...
# aws
g
Hello, could someone please point me to some documentation on configuring API Gateway access logging, including the required role?
l
g
Yes, exactly - to CloudWatch. How can we do this in Pulumi, including setting the required permission on the API Gateway?
l
All the AWS details are on that page. You don't set any permissions on the APIGateway side, just CloudWatch.
Nope, I have that backwards, my mistake.
You need to add the given managed policy to whatever role you're giving to APIGateway.
You use the Account resource to associate a role with the gateway
g
So once I have created the user with the required role, how do I associate this account with the API Gateway instance?
I think this is where I was getting stuck on. Is it possible to do this when creating an API Gateway with the AWS Crosswalk API?
l
You don't need a user for this. You create an instance of the apigateway.Account class.
Not sure about awsx stuff, I'll look it up, onesec.
I can't see API gateway in awsx...
g
Sorry, I meant Account, not user. I the example above, an Account instance named “demo” is created. Do I need to do anything with this to associate it with the API Gateway instance?
l
No. From the top of the docs page:
Account
Provides a settings of an API Gateway Account. Settings is applied region-wide per provider block.
g
I see, thanks.