Skip to content

Commit 40f9959

Browse files
author
Adetokunbo Ige
committed
chore: update policy
Signed-off-by: Adetokunbo Ige <[email protected]>
1 parent 2134919 commit 40f9959

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

todo-app/__main__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
# Create Lambda execution role
4141
lambda_role = aws.iam.Role(
4242
f"lambdaExecutionRole-{environment}",
43-
name=f"lambdaExecutionRole-{environment}",
4443
assume_role_policy=json.dumps({
4544
"Version": "2012-10-17",
4645
"Statement": [{
@@ -57,7 +56,6 @@
5756
# Create inline policy for the role
5857
dynamodb_policy = aws.iam.RolePolicy(
5958
f"lambdaRolePolicy-{environment}",
60-
name=f"lambdaRolePolicy-{environment}",
6159
role=lambda_role.id,
6260
policy=pulumi.Output.json_dumps({
6361
"Version": "2012-10-17",
@@ -93,7 +91,6 @@
9391
# Create a Lambda function using the Docker image
9492
lambda_function = aws.lambda_.Function(
9593
f"my-serverless-function-{environment}",
96-
name=f"my-serverless-function-{environment}",
9794
role=lambda_role.arn,
9895
package_type="Image",
9996
image_uri=docker_image,

0 commit comments

Comments
 (0)