#NEWLINE# def create( self ) : #NEWLINE# #INDENT# self . load_mapping ( ) #NEWLINE# self . load_parameters ( ) #NEWLINE# self . load_conditions ( ) #NEWLINE# self . tags . update ( { #NEWLINE# #INDENT# 'aws:cloudformation:stack-name' : self . get ( 'AWS::StackName' ) , #NEWLINE# 'aws:cloudformation:stack-id' : self . get ( 'AWS::StackId' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# for resource in self . resources : #NEWLINE# #INDENT# if isinstance ( self [ resource ] , ec2_models . TaggedEC2Resource ) : #NEWLINE# #INDENT# self . tags [ 'aws:cloudformation:logical-id' ] = resource #NEWLINE# ec2_models . ec2_backends [ self . _region_name ] . create_tags ( [ self [ resource ] . physical_resource_id ] , resource . tags )