Skip to content

Unable to use more than one instance of Lambda function in account with default configuration #9

@ronaldtse

Description

@ronaldtse

I just encountered this:

* aws_iam_role.this: Error creating IAM Role terraform-aws-lambda-edge-authentication: EntityAlreadyExists: Role with name terraform-aws-lambda-edge-authentication already exists.
	status code: 409, request id: 483c53ff-7b1a-11e9-876d-2de5551cb17c

This is due to the hardcoded name inside this terraform module. All resources MUST use DYNAMIC NAMES.

In this case, the name variable can be passed into the module to override the lambda function name. So I had to change both instances of my module.

Perhaps we make this a hard requirement? @phuonghuynh ?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions