Skip to content

Instantly share code, notes, and snippets.

@GodsEye-07
Last active February 4, 2020 13:08
Show Gist options
  • Save GodsEye-07/e9248801955d94506ac7a9c840945f68 to your computer and use it in GitHub Desktop.
Save GodsEye-07/e9248801955d94506ac7a9c840945f68 to your computer and use it in GitHub Desktop.
S3 Credentials
func initializeS3() {
let poolId = "***** your poolId *****"
let credentialsProvider = AWSCognitoCredentialsProvider(
regionType: .APSouth1, //other regionType according to your location.
identityPoolId: poolId
)
let configuration = AWSServiceConfiguration(region: .APSouth1, credentialsProvider: credentialsProvider)
AWSServiceManager.default().defaultServiceConfiguration = configuration
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment