@@ -31,30 +31,37 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `swift
3131
3232### Get started
3333
34- - [ Hello Amazon EC2] ( scenario/Package.swift#L8 ) (` DescribeSecurityGroups ` )
34+ - [ Hello Amazon EC2] ( hello/Package.swift#L8 ) (` DescribeSecurityGroups ` )
35+
36+
37+ ### Basics
38+
39+ Code examples that show you how to perform the essential operations within a service.
40+
41+ - [ Learn the basics] ( scenario/Package.swift )
3542
3643
3744### Single actions
3845
3946Code excerpts that show you how to call individual service functions.
4047
41- - [ AllocateAddress] ( scenario/Sources/entry.swift#L1015 )
42- - [ AssociateAddress] ( scenario/Sources/entry.swift#L1039 )
43- - [ AuthorizeSecurityGroupIngress] ( scenario/Sources/entry.swift#L928 )
48+ - [ AllocateAddress] ( scenario/Sources/entry.swift#L1019 )
49+ - [ AssociateAddress] ( scenario/Sources/entry.swift#L1043 )
50+ - [ AuthorizeSecurityGroupIngress] ( scenario/Sources/entry.swift#L932 )
4451- [ CreateKeyPair] ( scenario/Sources/entry.swift#L410 )
45- - [ CreateSecurityGroup] ( scenario/Sources/entry.swift#L903 )
46- - [ DeleteKeyPair] ( scenario/Sources/entry.swift#L469 )
47- - [ DeleteSecurityGroup] ( scenario/Sources/entry.swift#L993 )
48- - [ DescribeImages] ( scenario/Sources/entry.swift#L809 )
49- - [ DescribeInstanceTypes] ( scenario/Sources/entry.swift#L537 )
50- - [ DescribeKeyPairs] ( scenario/Sources/entry.swift#L446 )
52+ - [ CreateSecurityGroup] ( scenario/Sources/entry.swift#L907 )
53+ - [ DeleteKeyPair] ( scenario/Sources/entry.swift#L473 )
54+ - [ DeleteSecurityGroup] ( scenario/Sources/entry.swift#L997 )
55+ - [ DescribeImages] ( scenario/Sources/entry.swift#L813 )
56+ - [ DescribeInstanceTypes] ( scenario/Sources/entry.swift#L541 )
57+ - [ DescribeKeyPairs] ( scenario/Sources/entry.swift#L450 )
5158- [ DescribeSecurityGroups] ( hello/Sources/entry.swift#L44 )
52- - [ DisassociateAddress] ( scenario/Sources/entry.swift#L1065 )
53- - [ ReleaseAddress] ( scenario/Sources/entry.swift#L1082 )
54- - [ RunInstances] ( scenario/Sources/entry.swift#L845 )
55- - [ StartInstances] ( scenario/Sources/entry.swift#L711 )
56- - [ StopInstances] ( scenario/Sources/entry.swift#L661 )
57- - [ TerminateInstances] ( scenario/Sources/entry.swift#L760 )
59+ - [ DisassociateAddress] ( scenario/Sources/entry.swift#L1069 )
60+ - [ ReleaseAddress] ( scenario/Sources/entry.swift#L1086 )
61+ - [ RunInstances] ( scenario/Sources/entry.swift#L849 )
62+ - [ StartInstances] ( scenario/Sources/entry.swift#L715 )
63+ - [ StopInstances] ( scenario/Sources/entry.swift#L665 )
64+ - [ TerminateInstances] ( scenario/Sources/entry.swift#L764 )
5865
5966
6067<!-- custom.examples.start-->
@@ -84,6 +91,23 @@ and run commands.
8491This example shows you how to get started using Amazon EC2.
8592
8693
94+ #### Learn the basics
95+
96+ This example shows you how to do the following:
97+
98+ - Create a key pair and security group.
99+ - Select an Amazon Machine Image (AMI) and compatible instance type, then create an instance.
100+ - Stop and restart the instance.
101+ - Associate an Elastic IP address with your instance.
102+ - Connect to your instance with SSH, then clean up resources.
103+
104+ <!-- custom.basic_prereqs.ec2_Scenario_GetStartedInstances.start-->
105+ <!-- custom.basic_prereqs.ec2_Scenario_GetStartedInstances.end-->
106+
107+
108+ <!-- custom.basics.ec2_Scenario_GetStartedInstances.start-->
109+ <!-- custom.basics.ec2_Scenario_GetStartedInstances.end-->
110+
87111
88112### Tests
89113
0 commit comments