public void EnsureStackExists() { if (_hasCreatedStack) return; _awsConfiguration = new AwsConfiguration { AssumeRoleTrustDocument = Roles.Path("code-deploy-trust.json"), IamRolePolicyDocument = Roles.Path("code-deploy-policy.json"), Bucket = "aws-deployment-tools-tests", RoleName = "CodeDeployRole", AwsEndpoint = TestConfiguration.AwsEndpoint, Credentials = new TestSuiteCredentials() }; _iamClient = new AmazonIdentityManagementServiceClient( new AmazonIdentityManagementServiceConfig { RegionEndpoint = _awsConfiguration.AwsEndpoint, ProxyHost = _awsConfiguration.ProxyHost, ProxyPort = _awsConfiguration.ProxyPort }); DeletePreviousTestStack(); _deployer = new Deployer(_awsConfiguration); _stack = _deployer.CreateStack(new StackTemplate { StackName = StackName, TemplatePath = CloudFormationTemplates.Path("example-windows-vpc-autoscaling-group.template") }); _hasCreatedStack = true; }
public void EnsureStackExists() { if (_hasCreatedStack) return; _awsConfiguration = new AwsConfiguration { AssumeRoleTrustDocument = Roles.Path("code-deploy-trust.json"), IamRolePolicyDocument = Roles.Path("code-deploy-policy.json"), Bucket = "aws-deployment-tools-tests", RoleName = "CodeDeployRole", AwsEndpoint = TestConfiguration.AwsEndpoint, Credentials = new TestSuiteCredentials() }; _deployer = new Deployer(_awsConfiguration); DeletePreviousTestStack(); _stack = _deployer.CreateStack(new StackTemplate { StackName = StackName, TemplatePath = CloudFormationTemplates.Path("example-windows-vpc.template") }); _hasCreatedStack = true; }