From 18ebcc78b73d2a12482647ff3e86389de8d1fe23 Mon Sep 17 00:00:00 2001 From: Ray Krueger Date: Sat, 18 Mar 2023 16:37:42 +0000 Subject: [PATCH] Change iam session name When doing a cross-account DNS update the IAM session name was still using "valheim" in the name, which is the project I extracted this from. Just changing the name here to match the library name. --- resources/functions/public_ip_manager/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functions/public_ip_manager/index.py b/resources/functions/public_ip_manager/index.py index 7bed098..e7607ad 100644 --- a/resources/functions/public_ip_manager/index.py +++ b/resources/functions/public_ip_manager/index.py @@ -29,7 +29,7 @@ def update_dns(public_ip, hosted_zone, domain_name, assumed_role=None): if assumed_role: sts = boto3.client("sts") sts_response = sts.assume_role( - RoleArn=assumed_role, RoleSessionName="valheim-r53-updater" + RoleArn=assumed_role, RoleSessionName="cdk-fargate-public-dns" ) credentials = sts_response["Credentials"]