Skip to content

Commit

Permalink
Fixing minor formatting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
irenepsmith committed Dec 19, 2022
1 parent fcf6a33 commit bfcbc19
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .doc_gen/metadata/ec2_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ ec2_ReleaseAddress:
- sdk_version: 3
github: dotnetv3/EC2
sdkguide:
escerpts:
excerpts:
- description:
snippet_tags:
- EC2.dotnetv3.ReleaseAddress
Expand Down
2 changes: 1 addition & 1 deletion dotnetv3/EC2/Actions/EC2Wrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public string SaveKeyPair(KeyPair keyPair)
var tempPath = Path.GetTempPath();
var tempFileName = $"{tempPath}\\{Path.GetRandomFileName()}";
var pemFileName = Path.ChangeExtension(tempFileName, "pem");

// Save the keypair to a file in a temporary folder.
using var stream = new FileStream(pemFileName, FileMode.Create);
using var writer = new StreamWriter(stream);
Expand Down
4 changes: 2 additions & 2 deletions dotnetv3/EC2/Scenarios/EC2_Basics/EC2Basics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static async Task Main(string[] args)
validNumber = int.TryParse(selImage, out choice);
} while (!validNumber);

var selectedImage = images[choice-1];
var selectedImage = images[choice - 1];

// Display available instance types.
uiMethods.DisplayTitle("Instance Types");
Expand Down Expand Up @@ -205,7 +205,7 @@ static async Task Main(string[] args)
var allocationId = await ec2Methods.AllocateAddress();
Console.WriteLine("Now we will associate the Elastic IP address with our instance.");
var associationId = await ec2Methods.AssociateAddress(allocationId, instanceId);

// Start the instance again.
Console.WriteLine("Now let's start the instance again.");
await ec2Methods.StartInstances(instanceId);
Expand Down
4 changes: 2 additions & 2 deletions dotnetv3/EC2/Tests/EC2WrapperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class EC2WrapperTests
private readonly string _keyPairName;

private static string? _allocationId;
private static ArchitectureValues? _architecture;
private static ArchitectureValues? _architecture;
private static string? _associationId;
private static string? _ec2InstanceId;
private static List<Image>? _images;
Expand Down Expand Up @@ -77,7 +77,7 @@ public async Task AssociateAddressTest()
_associationId = await _ec2Wrapper.AssociateAddress(_allocationId, _ec2InstanceId);
Assert.NotNull(_associationId);
}

/// <summary>
/// Test the authorization of the local computer for ingress to an
/// Amazon EC2 instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

namespace CreateVPCExample
{
// snippet-start:[EC2.dotnetv3.CreateVPC]
using System;
using System.Threading.Tasks;
using Amazon.EC2;
Expand Down Expand Up @@ -39,6 +38,4 @@ public static async Task Main()
}
}
}

// snippet-end:[EC2.dotnetv3.CreateVPC]
}

0 comments on commit bfcbc19

Please sign in to comment.