Integrating AWS and recap.dev
Integrating AWS and recap.dev allows pulling CloudWatch logs and analyzing the costs of your Lambdas.
#
Setup#
1. Provide recap.dev with AWS credentials.recap.dev will automatically search for AWS credentials. The easiest way to provide them is to create and assign IAM role with the following policy to your instance or container:
#
2. Go to settings in your recap.dev server and enable the integration.#
Setting up a cross-account accessIf you have two AWS accounts (different environments, for example) and want to use one recap.dev server for both accounts, please do the following.
Assuming you have
Account A - account where your recap.dev server is started.
Account B - account to which recap.dev server should also have access.
Do the following:
In the account A
recap-dev-role
#
1. Create an IAM role called recap-dev-role
:#
2. Add following policies to the Please replace Account B in the last policy with an appropriate account number.
recap-dev-role
IAM role to your recap.dev server#
3. Assign In the Account B
recap-dev-delegation
with the following trust policy, replacing Account A with an appropriate account number:#
4. Create an IAM role called recap-dev-delegation
role:#
5. Add the following permission policy to the Read more on the topic from AWS here.