AWS Demo
Configure CLI
- Install the cli
- Retrieve a valid access key from aws console
- Configure the access key:
aws configure
- Use it!
aws s3 ls
If you want to check your local configuration, it is located in the directory ~/.aws/:
- config: configuration pour l’utilisation du cli aws.
- region par defaut
- format de sortie des commandes
- credentials: configuration des différentes acces key pour se connecter a aws.
Connect to Console
Configure SDK
Python
region specified in file system config file.
Java
region is specified in code
import com.amazonaws.regions.Region;
import com.amazonaws.regions.Regions;
// ...
Region region = Regions.getCurrentRegion();
// For local testing only
if (region == null) {
region = Region.getRegion(Regions.US_WEST_1);
}
.Net C#
region specified in app.config
<configuration>
<configSections>
<section name="aws" type="Amazon.AWSSection, AWSSDK.Core"/>
</configSections>
<aws region="us-west-2">
<logging logTo="Log4Net"/>
</aws>
</configuration>
Comments