Posts

Showing posts from March, 2020

Calling AWS Services

To programmatically connect to the AWS Services, need to use endpoints. The AWS SDK and the CLI use the default endpoint of the region to access the service. The regional endpoint is protocol://service-code.region-code.amazonaws.com standard. But services such as IAM not support the region. Some example of calling 1 to AWS services via API calls. All CLI calls are signed by Signature version 4 2 . To list all the active regions: (if you want to sort add the | sort to the end. aws ssm get-parameters-by-path --path /aws/service/global-infrastructure/regions --query Parameters[].Name In the above command regions is the important word. This command will return the following: --------------------------------------------------------------- | GetParametersByPath | +-------------------------------------------------------------+ | /aws/service/global-infrastructure/regions/ap-northeast-1 | | /aws/service/global-infrastructure/regions/eu-c