Skip to content

Commit f9b0704

Browse files
authored
Add instructions to customise app for an AWS account (#38)
* add instructions to customize the app for another AWS account
1 parent 6cfb193 commit f9b0704

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

Examples/ios-math-solver/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
An iOS application that uses AWS Bedrock and Claude to solve math and physics problems from images.
44

5+
## TODO: add your AWS account detail
6+
7+
Before compiling or running this app, you must
8+
9+
- Configure SignIn With Apple on your Apple developer account.
10+
- Configure an IAM Identity Provider for SignIn With Apple and this application bundle.
11+
- Create an AWS IAM role that has the necessary permissions to access AWS Bedrock.
12+
- Replace the placeholder values in `changeme.swift` with your actual AWS account detail and IAM role name.
13+
- Enable the access to Amazon Bedrock models in the Bedrock console.
14+
15+
See [AWS Documentation](https://docs.aws.amazon.com/sdk-for-swift/latest/developer-guide/apple-integration.html#apple-sign-in) for more information.
16+
517
## Features
618

719
- Take a photo or select an image from your photo library

Examples/ios-math-solver/Sources/MathSolverViewModel.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ final class MathSolverViewModel: ObservableObject, @unchecked Sendable {
3333
/// Reference to the authentication manager
3434
private weak var authManager: AuthenticationManager?
3535

36-
// to integrate with Sign In With Apple (SIWA), you must prepare your AWS account
37-
// Follow instructions at https://docs.aws.amazon.com/sdk-for-swift/latest/developer-guide/apple-integration.html#apple-sign-in
38-
39-
private let awsAccountNumber = "486652066693" // TODO: Replace with your AWS account number
40-
private let awsIAMRoleName = "ios-swift-bedrock" // TODO: Replace with your IAM role name
4136
private var logger = Logger(label: "MathSolverViewModel")
4237

4338
/// Sets the authentication manager and initializes the Bedrock client
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift Bedrock Library open source project
4+
//
5+
// Copyright (c) 2025 Amazon.com, Inc. or its affiliates
6+
// and the Swift Bedrock Library project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift Bedrock Library project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
15+
16+
// to integrate with Sign In With Apple (SIWA), you must prepare your AWS account
17+
// Follow instructions at https://docs.aws.amazon.com/sdk-for-swift/latest/developer-guide/apple-integration.html#apple-sign-in
18+
19+
private let awsAccountNumber = "0000000000" // TODO: Replace with your AWS account number
20+
private let awsIAMRoleName = "your-iam-ios-swift-bedrock-role-name" // TODO: Replace with your IAM role name

0 commit comments

Comments
 (0)