Skip to content

Commit b57dfd4

Browse files
authored
Merge pull request #2959 from k8s-infra-cherrypick-robot/cherry-pick-2952-to-release-0.7
[release-0.7] Fix ssm parameter
2 parents 5aabdb1 + 5f01c1d commit b57dfd4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pkg/cloud/services/ssm/secret.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,10 @@ func (s *Service) Create(m *scope.MachineScope, data []byte) (string, int32, err
9393
// retryableCreateSecret is a function to be passed into a waiter. In a separate function for ease of reading.
9494
func (s *Service) retryableCreateSecret(name string, chunk []byte, tags infrav1.Tags) (bool, error) {
9595
_, err := s.SSMClient.PutParameter(&ssm.PutParameterInput{
96-
Name: aws.String(name),
97-
DataType: aws.String("text"),
98-
Value: aws.String(string(chunk)),
99-
Tags: converters.MapToSSMTags(tags),
100-
Type: aws.String("SecureString"),
96+
Name: aws.String(name),
97+
Value: aws.String(string(chunk)),
98+
Tags: converters.MapToSSMTags(tags),
99+
Type: aws.String("SecureString"),
101100
})
102101
if err != nil {
103102
return false, err

0 commit comments

Comments
 (0)