From e3fcf543294e688c2db9dc65977edf499e2de42d Mon Sep 17 00:00:00 2001 From: Justin W Smith <103147162+justsmth@users.noreply.github.com> Date: Thu, 18 Jan 2024 10:27:05 -0500 Subject: [PATCH] Cleanup --- tests/ci/cdk/README.md | 6 ++++++ tests/ci/cdk/cdk/aws_lc_ec2_test_framework_ci_stack.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/ci/cdk/README.md b/tests/ci/cdk/README.md index 88ad555214..c03b920a9d 100644 --- a/tests/ci/cdk/README.md +++ b/tests/ci/cdk/README.md @@ -71,6 +71,12 @@ If not done previously, bootstrap cdk before running the commands below: cdk bootstrap aws://${AWS_ACCOUNT_ID}/us-west-2 ``` +You may also need to request an increase to certain account quotas: +```shell +open https://${CDK_DEPLOY_REGION}.console.aws.amazon.com/servicequotas/home/services/ec2/quotas +``` +* **EC2-VPC Elastic IPs** = 20 + Note: `GITHUB_REPO_OWNER` specifies the GitHub repo targeted by this CI setup. * https://github.com/${GITHUB_REPO_OWNER}/aws-lc.git diff --git a/tests/ci/cdk/cdk/aws_lc_ec2_test_framework_ci_stack.py b/tests/ci/cdk/cdk/aws_lc_ec2_test_framework_ci_stack.py index 81be51dfd2..709d2c4a7f 100644 --- a/tests/ci/cdk/cdk/aws_lc_ec2_test_framework_ci_stack.py +++ b/tests/ci/cdk/cdk/aws_lc_ec2_test_framework_ci_stack.py @@ -85,7 +85,7 @@ def __init__(self, iam.ManagedPolicy.from_aws_managed_policy_name("CloudWatchAgentServerPolicy") ]) iam.CfnInstanceProfile(scope=self, id="{}-ec2-profile".format(id), - roles=["{}-ec2-role".format(id)], + roles=[ec2_role.role_name], instance_profile_name="{}-ec2-profile".format(id)) # create vpc for ec2s