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

Add support for ephemeral parameter resource #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rumenvasilev
Copy link
Owner

With terraform 1.10 a new resource type was introduced "ephemeral". It's like data source, but nothing is persisted in the plan or in the state file. Ideal for transparently passing secret material without the secret sprawl terraform was prone to do.

@rumenvasilev
Copy link
Owner Author

Tested the provider. Existing functionality works. New functionality.. ephemeral is currently very limited to a ultra narrow use-case:

ephemeral "fastssm_parameter" "test" {
    name = "/roomba/test/fastssm/resource"
}

provider "postgresql" {
  host     = "localhost"
  port     = 5702
  username = "username"
  password = ephemeral.fastssm_parameter.test.value
}

Pulling secret material to pass it over to RDS or EC user for example does not work.

resource "aws_elasticache_user" "test" {
  user_name = "testUserName"
  passwords = [ephemeral.fastssm_parameter.test.value]
  ...
}

resource "aws_db_instance" "test" {
  username = "foo"
  password = ephemeral.fastssm_parameter.test.value
  ...
}

Will hold off with this PR until this gets more mature.

@rumenvasilev rumenvasilev added the enhancement New feature or request label Nov 29, 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 needs-testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant