aws-cfn-resource-bridge
aws-cfn-resource-bridge copied to clipboard
Configure CustomResource dynamically via python class.
- Add option for importing outside of python class that returns config params, and override CustomResoruce attributes dynamically instead of loading config file. For example, outside of python class is able to retive config params via network such as AWS dynamodb.
- Below is an example of a config provider settings.
> cat /etc/cfn/cfn-resource-bridge.conf
[cfn_client] resource_type=Custom::CfnCustom default_action=python -m cfn_sqs config_provider=com.example.cfn_bridge_config_provider.CfnBridgeConfigProvider
> cat /Library/Python/2.7/site-packages/com/example/cfn_bridge_config_provider.py
class CfnBridgeConfigProvider(object): def get_options(self): queue_url = self.get_queue_url_from_aws_dynamodb() return { 'queue_url': queue_url, 'default_action': 'action-default' }
This project has been archived. Please use CloudFormation’s native support for Custom Resources as documented at https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html