Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DBSnapshot] create new resource DBSnapshot #227

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

moataz-mhmd
Copy link
Collaborator

@moataz-mhmd moataz-mhmd commented Jun 30, 2022

Description of changes:
This changes contains DBSnapshot resource implementation following most recent AWS RDS Documentation: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateSnapshot.html

Which includes

  • Create handler
  • Update handler
  • Delete handler
  • List handler
  • Read handler
  • Unit tests

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@moataz-mhmd moataz-mhmd requested review from osdrv and khebul June 30, 2022 11:51
"description": "An example resource schema demonstrating some basic constructs and validation rules.",
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
"definitions": {
"Tag": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,4 @@
{
"DBSnapshotIdentifier": "dbsnapshot-contract-test",
"DBInstanceIdentifier": "postgresql-3"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe contract tests will require this instance to exist. Can we include template for that instance in this PR?

.translateToServiceRequest(Function.identity())
// this skips the call and goes directly to stabilization
.makeServiceCall(EMPTY_CALL)
.stabilize((resourceModel, response, proxyInvocation, model, callbackContext) -> isStabilized(resourceModel, proxyInvocation)).progress();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is handleErrors call omitted intentionally here?

"read": {
"permissions": [
"rds:DescribeDBSnapshots",
"rds:ListTagsForResource"
Copy link
Collaborator

@khebul khebul Jul 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I see any invocations of ListTagsForResource. Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants