Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 789 Bytes

README.md

File metadata and controls

53 lines (42 loc) · 789 Bytes

springboot-dynamodb-example

Build CRUD Application using SpringBoot + DynamoDB then Deploy CRUD application to Elastic Beanstalk


Dependency (Required)

<dependency>
	<groupId>com.amazonaws</groupId>
	<artifactId>aws-java-sdk-dynamodb</artifactId>
	<version>1.11.815</version>
</dependency>

Custom Policy

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action":   [ "dynamodb:PutItem" ],
      "Resource": [ "*" ]
    },
    {
      "Effect": "Allow",
      "Action":   [ "sns:Publish" ],
      "Resource": [ "*" ]
    }
  ]
}

Request JSON

{
	"name":"Santosh",
	"email":"[email protected]",
	"age":30,
	"address":{
		"city":"Bangalore",
		"state":"karnataka",
		"pinCode":"560037"
	}
}