Replies: 1 comment
-
|
Floci now injects the import boto3
import json
dynamo = boto3.client('dynamodb', region_name='us-east-1', aws_access_key_id='laub', aws_secret_access_key='laub') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm testing Lambda applications deployed with CloudFormation. I realized that since they run in a container, if I set
endpoint_url=http://localhost:4566, it doesn't work because it tries to call itself. The name assigned in Docker Compose, which isflociin this case, needs to be correct. I'm mentioning this in case it's helpful to anyone else.`import boto3
import json
dynamo = boto3.client('dynamodb', endpoint_url='http://floci:4566',
region_name='us-east-1',
aws_access_key_id='laub', aws_secret_access_key='laub')
....
`
Best regards
Beta Was this translation helpful? Give feedback.
All reactions