Skip to content

Commit

Permalink
r/aws_ssm_parameter: Adding support for Intelligent-Tiering
Browse files Browse the repository at this point in the history
  • Loading branch information
slapula authored and anGie44 committed Mar 16, 2021
1 parent 078a334 commit 7202bde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions aws/resource_aws_ssm_parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func resourceAwsSsmParameter() *schema.Resource {
ValidateFunc: validation.StringInSlice([]string{
ssm.ParameterTierStandard,
ssm.ParameterTierAdvanced,
ssm.ParameterTierIntelligentTiering,
}, false),
},
"type": {
Expand Down
4 changes: 2 additions & 2 deletions aws/resource_aws_ssm_parameter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ func TestAccAWSSSMParameter_Tier(t *testing.T) {
CheckDestroy: testAccCheckAWSSSMParameterDestroy,
Steps: []resource.TestStep{
{
Config: testAccAWSSSMParameterConfigTier(rName, "Advanced"),
Config: testAccAWSSSMParameterConfigTier(rName, "Intelligent-Tiering"),
Check: resource.ComposeTestCheckFunc(
testAccCheckAWSSSMParameterExists(resourceName, &parameter1),
resource.TestCheckResourceAttr(resourceName, "tier", "Advanced"),
resource.TestCheckResourceAttr(resourceName, "tier", "Standard"),
),
},
{
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/ssm_parameter.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The following arguments are supported:
* `type` - (Required) The type of the parameter. Valid types are `String`, `StringList` and `SecureString`.
* `value` - (Required) The value of the parameter.
* `description` - (Optional) The description of the parameter.
* `tier` - (Optional) The tier of the parameter. If not specified, will default to `Standard`. Valid tiers are `Standard` and `Advanced`. For more information on parameter tiers, see the [AWS SSM Parameter tier comparison and guide](https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-advanced-parameters.html).
* `tier` - (Optional) The tier of the parameter. If not specified, will default to `Standard`. Valid tiers are `Standard`, `Advanced`, and `Intelligent-Tiering`. For more information on parameter tiers, see the [AWS SSM Parameter tier comparison and guide](https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-advanced-parameters.html).
* `key_id` - (Optional) The KMS key id or arn for encrypting a SecureString.
* `overwrite` - (Optional) Overwrite an existing parameter. If not specified, will default to `false` if the resource has not been created by terraform to avoid overwrite of existing resource and will default to `true` otherwise (terraform lifecycle rules should then be used to manage the update behavior).
* `allowed_pattern` - (Optional) A regular expression used to validate the parameter value.
Expand Down

0 comments on commit 7202bde

Please sign in to comment.