Skip to content

Commit

Permalink
add a new temporary table
Browse files Browse the repository at this point in the history
that uses the new table structure.  If this were a live transition, the original data could be moved to the new table.
  • Loading branch information
jdub233 committed Nov 13, 2023
1 parent b8755ae commit 02c62ef
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ Resources:
Timeout: 30
Environment:
Variables:
DYNAMODB_TABLE: !Ref AccessControlDynamoDB
DYNAMODB_TABLE: !Ref TempAccessControlDynamoDB
ORIGINAL_BUCKET: !Ref S3Bucket
# The function needs permission to call back to the S3 Object Lambda Access Point with the WriteGetObjectResponse.
Policies:
- DynamoDBReadPolicy:
TableName: !Ref AccessControlDynamoDB
TableName: !Ref TempAccessControlDynamoDB
- S3CrudPolicy:
BucketName: !Ref S3Bucket
- Statement:
Expand All @@ -169,6 +169,13 @@ Resources:
Type: String
TableName: !Sub ${AWS::StackName}-AccessControl

TempAccessControlDynamoDB:
Type: AWS::Serverless::SimpleTable
Properties:
PrimaryKey:
Name: PK
Type: String
TableName: !Sub ${AWS::StackName}-TempAccessControl

Outputs:
S3BucketName:
Expand Down

0 comments on commit 02c62ef

Please sign in to comment.