How to use the deployfish.aws.systems_manager.Parameter function in deployfish

To help you get started, we’ve selected a few deployfish examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github caltechads / deployfish / deployfish / aws / systems_manager.py View on Github external
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]))
github caltechads / deployfish / deployfish / aws / systems_manager.py View on Github external
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)]
github caltechads / deployfish / deployfish / aws / systems_manager.py View on Github external
'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)]
github caltechads / deployfish / deployfish / aws / systems_manager.py View on Github external
def _defaults(self):
        super(Parameter, self)._defaults()
        self._key = None