-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: update name and use for_each function in code #40
base: master
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
@@ -128,15 +128,15 @@ data "aws_iam_policy_document" "assume_role_policy" { | |||
resource "aws_iam_role" "s3_access_for_sftp_users" { | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think uou will get errors if more then one user will be defined for sftp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@evgenyidf Hello
Yes, I have done it using for_each function. Now such error will not occur
|
|
what
why