Skip to content

Instantly share code, notes, and snippets.

@dmennis
Created May 7, 2019 21:56
Show Gist options
  • Save dmennis/739a5b78df3e6b559dfeb899cfe4b7f3 to your computer and use it in GitHub Desktop.
Save dmennis/739a5b78df3e6b559dfeb899cfe4b7f3 to your computer and use it in GitHub Desktop.
Used for the Celebrity app/blog
// Initialize Identity Provider
let credentialsProvider = AWSCognitoCredentialsProvider(
regionType: .USEast1,
identityPoolId: "<YOUR-COGNITO-IDENTITY-POOL-ID-HERE>")
let configuration = AWSServiceConfiguration(
region: .USEast1,
credentialsProvider: credentialsProvider)
AWSServiceManager.default().defaultServiceConfiguration = configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment