Last active
February 4, 2020 13:08
-
-
Save GodsEye-07/e9248801955d94506ac7a9c840945f68 to your computer and use it in GitHub Desktop.
S3 Credentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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