Closed srakl closed 2 years ago
Hi @srakl! Can you verify the instance has permissions to dynamodb?
@jasonmccallister Sorry new to dynamodb and Yii2,
but I think i did.
I went here https://console.aws.amazon.com/iamv2/home?#/roles and created a role
is there a different role i have to make for localhost?
any help on this? thanks
@srakl what you use on local host depends on the AWS CLI and what you are using for local development. The best approach is to use environment variables with an IAM dedicated to that specific role for accessing DynamoDB.
Closing this out. Let us know if there are any other issues
Description
I can't seem to get sessions to store in dynamodb. my key and secret are correct and i can connect using
nosql workbench
but nothing is pushed from local to dynamodb. What am i doing wrong here? ThanksSteps to reproduce
aws dynamodb create-table --table-name=sessions --attribute-definitions=AttributeName=id,AttributeType=S --key-schema=AttributeName=id,KeyType=HASH --billing-mode=PAY_PER_REQUEST { "TableDescription": { "AttributeDefinitions": [ { "AttributeName": "id", "AttributeType": "S" } ], "TableName": "sessions", "KeySchema": [ { "AttributeName": "id", "KeyType": "HASH" } ], "TableStatus": "CREATING", "CreationDateTime": "2021-07-28T12:47:16.767000+08:00", "ProvisionedThroughput": { "NumberOfDecreasesToday": 0, "ReadCapacityUnits": 0, "WriteCapacityUnits": 0 }, "TableSizeBytes": 0, "ItemCount": 0, "TableArn": "arn:aws:dynamodb:ap-southeast-1:182823296337:table/sessions", "TableId": "d4757d4a-ccad-4aba-87c1-XXXXXXXXXXXX", "BillingModeSummary": { "BillingMode": "PAY_PER_REQUEST" } } }
$session = Yii::$app->session;
$session->set('name', 'stack');