Skip to content
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

Expose uniqueid of task_exec role #142

Closed
missylbytes opened this issue Oct 21, 2021 · 1 comment · Fixed by #155
Closed

Expose uniqueid of task_exec role #142

missylbytes opened this issue Oct 21, 2021 · 1 comment · Fixed by #155

Comments

@missylbytes
Copy link

missylbytes commented Oct 21, 2021

Describe the Feature

An output of the unique IDs for the two roles created for the service task:
task_exec_role_uniqueid

Expected Behavior

When using this module, I can access the uniqueid (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role#unique_id) field on the task_exec role.

Use Case

We use the unique ids for permissions for secrets. Since I cannot access the uniqueid on the task_exec role, we have to do a chicken and an egg scenario of trying to access these fields through a data source:

# These are needed because the cloudposse module does not expose the roles unique ids
data "aws_iam_role" "task_exec_role" {
  name = module.ecs_alb_service_task.task_exec_role_name
}

Describe Ideal Solution

As stated above, just an output of the uniqueid for the task_exec role

@missylbytes
Copy link
Author

EDIT: I do see that the task role is the unique ID. So really just need the task_exec role's uniqueid.

@Nuru Nuru changed the title Expose uniqueid of task and task_exec roles Expose uniqueid of task_exec role Dec 27, 2021
@Nuru Nuru closed this as completed in #155 Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant