| 
									
										
										
										
											2014-11-03 14:24:22 -05:00
										 |  |  | from __future__ import unicode_literals | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | template = { | 
					
						
							|  |  |  |     "AWSTemplateFormatVersion": "2010-09-09", | 
					
						
							|  |  |  |     "Description": "VPC ENI Test CloudFormation", | 
					
						
							|  |  |  |     "Resources": { | 
					
						
							|  |  |  |         "ENI": { | 
					
						
							|  |  |  |             "Type": "AWS::EC2::NetworkInterface", | 
					
						
							| 
									
										
										
										
											2019-10-31 08:44:26 -07:00
										 |  |  |             "Properties": {"SubnetId": {"Ref": "Subnet"}}, | 
					
						
							| 
									
										
										
										
											2014-11-03 14:24:22 -05:00
										 |  |  |         }, | 
					
						
							|  |  |  |         "Subnet": { | 
					
						
							|  |  |  |             "Type": "AWS::EC2::Subnet", | 
					
						
							|  |  |  |             "Properties": { | 
					
						
							|  |  |  |                 "AvailabilityZone": "us-east-1a", | 
					
						
							|  |  |  |                 "VpcId": {"Ref": "VPC"}, | 
					
						
							| 
									
										
										
										
											2019-10-31 08:44:26 -07:00
										 |  |  |                 "CidrBlock": "10.0.0.0/24", | 
					
						
							|  |  |  |             }, | 
					
						
							| 
									
										
										
										
											2014-11-03 14:24:22 -05:00
										 |  |  |         }, | 
					
						
							| 
									
										
										
										
											2019-10-31 08:44:26 -07:00
										 |  |  |         "VPC": {"Type": "AWS::EC2::VPC", "Properties": {"CidrBlock": "10.0.0.0/16"}}, | 
					
						
							| 
									
										
										
										
											2014-11-03 14:24:22 -05:00
										 |  |  |     }, | 
					
						
							|  |  |  |     "Outputs": { | 
					
						
							|  |  |  |         "NinjaENI": { | 
					
						
							|  |  |  |             "Description": "Elastic IP mapping to Auto-Scaling Group", | 
					
						
							| 
									
										
										
										
											2019-10-31 08:44:26 -07:00
										 |  |  |             "Value": {"Ref": "ENI"}, | 
					
						
							| 
									
										
										
										
											2019-03-27 16:28:18 -04:00
										 |  |  |         }, | 
					
						
							|  |  |  |         "ENIIpAddress": { | 
					
						
							|  |  |  |             "Description": "ENI's Private IP address", | 
					
						
							| 
									
										
										
										
											2019-10-31 08:44:26 -07:00
										 |  |  |             "Value": {"Fn::GetAtt": ["ENI", "PrimaryPrivateIpAddress"]}, | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2014-11-03 14:24:22 -05:00
										 |  |  | } |