Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Find parameter stores currently in the AWS System Manager Parameter Store that
should be deleted. These will have our parameter name prefix ("CLUSTER.SERVICE.")
"""
response = self.ssm.describe_parameters(
Filters=[
{
'Key': 'Name',
'Values': [self.prefix]
}
],
MaxResults=50
)
for parameter in response['Parameters']:
if parameter['Name'] not in self:
response = self.ssm.get_parameters(Names=[parameter['Name']], WithDecryption=True)
self.append(Parameter(self.service, self.cluster, aws=response['Parameters'][0]))
ParameterFilters=[{
'Key': 'Name',
'Option': 'BeginsWith',
'Values': [m.group('prefix')]
}],
PaginationConfig={'MaxItems': 100, 'PageSize': 50}
)
parms = []
for r in response_iterator:
parms.extend(r['Parameters'])
for parm in parms:
if parm['Type'] == 'SecureString':
line = "{}:external:secure:{}".format(parm['Name'], parm['KeyId'])
else:
line = "{}:external".format(parm['Name'])
parameter_list.append(Parameter(service, cluster, yml=line))
return parameter_list
return [Parameter(service, cluster, yml=yml)]
'Values': [m.group('prefix')]
}],
PaginationConfig={'MaxItems': 100, 'PageSize': 50}
)
parms = []
for r in response_iterator:
parms.extend(r['Parameters'])
for parm in parms:
if parm['Type'] == 'SecureString':
line = "{}:external:secure:{}".format(parm['Name'], parm['KeyId'])
else:
line = "{}:external".format(parm['Name'])
parameter_list.append(Parameter(service, cluster, yml=line))
return parameter_list
return [Parameter(service, cluster, yml=yml)]
def _defaults(self):
super(Parameter, self)._defaults()
self._key = None