Amazon AWS SDK Betriebsanweisung Seite 54

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 73
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 53
To launch an EC2 instance using the console, follow the directions in Launching a Windows Instance
in the Amazon Elastic Compute Cloud User Guide for Microsoft Windows.When you reach the Review
Instance Launch page, click Edit instance details. In IAM role, specify the IAM role that you created
previously. Complete the procedure as directed. Notice that you'll need to create or use an existing
security group and key pair in order to connect to the instance.
To launch an EC2 instance with an IAM role using the SDK for .NET, see Launch an EC2 In-
stance (p. 41).
Note that an IAM user can't launch an instance with an IAM role without the permissions granted by the
following policy.
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": [
"iam:PassRole",
"iam:ListInstanceProfiles",
"ec2:*"
],
"Resource": "*"
}]
}
Run the Sample Program on the EC2 Instance
To transfer the sample program to your EC2 instance, connect to the instance using the AWS Management
Console as described in the following procedure.
Note
Alternatively, connect using the Toolkit for Visual Studio (as described in Connecting to an
Amazon EC2 Instance in the AWS Toolkit for Visual Studio User Guide) and then copy the files
from your local drive to the instance. The Remote Desktop session is automatically configured
so that your local drives are available to the instance.
To run the sample program on the EC2 instance
1. Open the Amazon EC2 console.
2. Get the password for your EC2 instance as follows:
a. In the navigation pane, click Instances. Select the instance, and then click Connect.
b. In the Connect To Your Instance dialog box, click Get Password. (It will take a few minutes
after the instance is launched before the password is available.)
c. Click Browse and navigate to the private key file you created when you launched the instance.
Select the file and click Open to copy the entire contents of the file into contents box.
d. Click Decrypt Password.The console displays the default administrator password for the in-
stance in the Connect To Your Instance dialog box, replacing the link to Get Password shown
previously with the actual password.
e. Record the default administrator password, or copy it to the clipboard.You need this password
to connect to the instance.
3. Connect to your EC2 instance as follows:
Version v2.0.0
50
AWS SDK for .NET Developer Guide
Run the Sample Program on the EC2 Instance
Seitenansicht 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 72 73

Kommentare zu diesen Handbüchern

Keine Kommentare