コード例 #1
0
        public Ec2Terminator(string awsProfileName)
        {
            var creds = new StoredProfileAWSCredentials(awsProfileName);
            _client = AWSClientFactory.CreateAmazonEC2Client(creds);

            _instanceHandler = new Ec2InstanceHandler(_client);
            _tagHandler = new Ec2TagHandler(_client);
            _snapshotHandler = new Ec2SnapshotHandler(_client, _tagHandler);
            _securityGroupHandler = new Ec2SecurityGroupHandler(_client);
        }
コード例 #2
0
        //private Ec2SnapshotHandler _snapshotHandler;
        public Ec2Bootstrapper(string awsProfileName)
        {
            _awsProfileName = awsProfileName;
            var creds = new StoredProfileAWSCredentials(awsProfileName);
            _client = AWSClientFactory.CreateAmazonEC2Client(creds);

            _instanceHandler = new Ec2InstanceHandler(_client);
            _securityGroupHandler = new Ec2SecurityGroupHandler(_client);
            _tagHandler = new Ec2TagHandler(_client);
            _passwordHandler = new Ec2InstancePasswordHandler(_client);
            //_snapshotHandler = new Ec2SnapshotHandler(_client, _tagHandler);
        }