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

[Enhancement]: get caller identity #46

Closed
nicks opened this issue Aug 28, 2024 · 0 comments · Fixed by #68
Closed

[Enhancement]: get caller identity #46

nicks opened this issue Aug 28, 2024 · 0 comments · Fixed by #68
Labels
enhancement New feature or request

Comments

@nicks
Copy link
Contributor

nicks commented Aug 28, 2024

Description

right now our acceptance tests want to create and delete resources owned by the current user. So they need some way to get the current user.

In the AWS provider, this is handled as
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity

Affected Resource(s) and/or Data Source(s)

No response

Potential Terraform Configuration

data "docker_caller_identity" "current" {}

output "username" {
  value = data.docker_caller_identity.current.username
}

References

No response

Would you like to implement a fix?

None

@nicks nicks added the enhancement New feature or request label Aug 28, 2024
nicks added a commit that referenced this issue Oct 23, 2024
fixes #46

Signed-off-by: Nick Santos <nick.santos@docker.com>
nicks added a commit that referenced this issue Oct 23, 2024
fixes #46

Signed-off-by: Nick Santos <nick.santos@docker.com>
nicks added a commit that referenced this issue Oct 23, 2024
fixes #46

Signed-off-by: Nick Santos <nick.santos@docker.com>
@nicks nicks closed this as completed in d6e621a Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant