feat: update name and use for_each function in code#40
feat: update name and use for_each function in code#40theprashantyadav wants to merge 3 commits intomasterfrom
Conversation
|
There was a problem hiding this comment.
Running first time returns error while ssh key importing (second time ok):
aws_transfer_user.transfer_server_user["s3docs"]: Creation complete after 1s [id=s-ae723d54cf4247849/s3docs] ╷ │ Error: importing ssh public key: ResourceNotFoundException: Unknown user │ { │ RespMetadata: { │ StatusCode: 400, │ RequestID: "35e823db-e9c3-4f50-a587-ed4ec236410d" │ }, │ Message_: "Unknown user", │ Resource: "s3docs", │ ResourceType: "User"
can you please "additional_tags' variable and merge with
tags = merge(module.labels.tags, var.additional_tags)
main.tf
Outdated
| for_each = var.enabled ? local.user_names_map : {} | ||
|
|
||
| name = module.labels.id | ||
| name = format("%s-sftp-users", module.labels.id) |
There was a problem hiding this comment.
I think uou will get errors if more then one user will be defined for sftp
There was a problem hiding this comment.
@evgenyidf Hello
Yes, I have done it using for_each function. Now such error will not occur
|
|
what
why