Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import potemkin
import boto3
from potemkin.configservice import evaluate_config_rule_and_wait_for_resource
@potemkin.CloudFormationStack(
'test/integration/test_templates/eip.yml',
stack_name_stem='EipTestStack'
)
def test_attached_eip_config_rule(stack_outputs, stack_name):
eipalloc = stack_outputs['EIPOutput']
configservice = boto3.Session().client('config')
actual_result = evaluate_config_rule_and_wait_for_resource(
configservice,
resource_id=eipalloc,
rule_name='eip-attached'
)
expected_compliance_type = 'NON_COMPLIANT'
assert actual_result['ComplianceType'] == expected_compliance_type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.