This module creates an New Relic API Key and SSM SecureString parameter. Optionally it can create a read-only policy for the generated secret, so this secret can easily be used by other AWS Services.
Name | Description | Type | Default | Required |
---|---|---|---|---|
create_iam_policy_read_only | Whether to create the IAM policy for read-only access to SSM Secret. | bool |
true |
no |
iam_policy_read_only_name | Name of the read-only IAM policy. | string |
null |
no |
iam_policy_read_only_use_prefix | Whether to use the prefix for the read-only IAM policy. | bool |
false |
no |
new_relic_account_id | New Relic Account ID to create the key in. | string |
n/a | yes |
new_relic_ingest_type | Ingest type of New Relic key to create. Required if new_relic_key_type is INGEST. Valid options are BROWSER or LICENSE, case-sensitive. | string |
"LICENSE" |
no |
new_relic_key_name | Name of the New Relic key to create. | string |
n/a | yes |
new_relic_key_notes | Notes of the New Relic key to create. | string |
null |
no |
new_relic_key_type | Type of New Relic key to create. Valid options are INGEST, REST, or USER, case-sensitive. | string |
"INGEST" |
no |
new_relic_key_user_id | User ID of the New Relic key to create. Required if new_relic_key_type is USER. | string |
null |
no |
secretsmanager_secret_description | Description of the SSM secret. | string |
"New Relic Account ID and License key for integrating services." |
no |
secretsmanager_secret_name | Name of the SSM secret. | string |
null |
no |
tags | Tags to add to the created resources. | map(any) |
{} |
no |
Name | Description |
---|---|
iam_policy_read_only_arn | n/a |
secretsmanager_secret_arn | n/a |
secretsmanager_secret_version_arn | n/a |
Name | Version |
---|---|
aws | >= 4.36 |
newrelic | >= 2.37.0 |
- resource.aws_secretsmanager_secret.main (modules/ssm_license_key/main.tf#18)
- resource.aws_secretsmanager_secret_version.main (modules/ssm_license_key/main.tf#27)
- resource.newrelic_api_access_key.main (modules/ssm_license_key/main.tf#7)