-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try and get CR deployed even if it doesn't work yet
- Loading branch information
Showing
24 changed files
with
2,251 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[requires] | ||
python_version = "3.12" | ||
|
||
[packages] | ||
aws-lambda-powertools = "*" | ||
boto3-stubs = { extras = ["route53","sts"], version = "*"} | ||
crhelper = "*" | ||
|
||
[dev-packages] | ||
cfn-lint = "*" | ||
flake8 = "*" | ||
moto = {extras = ["route53","sts"], version = "*"} | ||
mypy = "*" | ||
pylint = "*" | ||
pytest = "*" | ||
pytest-cov = "*" | ||
pytest-mock = "*" | ||
pytest-pylint = "*" | ||
tox = "*" | ||
genson = "*" | ||
|
||
[scripts] | ||
#install-lambda-functions = "pipenv install -r src/requirements.txt" | ||
test = "pytest -vv --cov src --cov-report term-missing --cov-fail-under 95 tests" | ||
test-unit = "pytest -vv --cov src --cov-report term-missing --cov-fail-under 95 tests/unit" | ||
test-int = "pytest -vv --cov src --cov-report term-missing --cov-fail-under 95 tests/integration" | ||
flake8 = "flake8" | ||
lint = "pylint" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"ZoneName" : "test.example.com", | ||
"NameServers": [ | ||
"ns1.example.com", | ||
"ns2.example.com", | ||
"ns3.example.com", | ||
"ns4.example.com" | ||
] | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"Records": [ | ||
{ | ||
"EventSource": "aws:sns", | ||
"EventVersion": "1.0", | ||
"EventSubscriptionArn": "arn:aws:sns:us-east-1::ExampleTopic", | ||
"Sns": { | ||
"Type": "Notification", | ||
"MessageId": "95df01b4-ee98-5cb9-9903-4c221d41eb5e", | ||
"TopicArn": "arn:aws:sns:us-east-1:123456789012:ExampleTopic", | ||
"Subject": "example subject", | ||
"Message": "example message", | ||
"Timestamp": "1970-01-01T00:00:00.000Z", | ||
"SignatureVersion": "1", | ||
"Signature": "EXAMPLE", | ||
"SigningCertUrl": "EXAMPLE", | ||
"UnsubscribeUrl": "EXAMPLE" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/SNSEvent", | ||
"definitions": { | ||
"SNSEntity": { | ||
"required": [ | ||
"Signature", | ||
"MessageId", | ||
"Type", | ||
"TopicArn", | ||
"MessageAttributes", | ||
"SignatureVersion", | ||
"Timestamp", | ||
"SigningCertUrl", | ||
"Message", | ||
"UnsubscribeUrl", | ||
"Subject" | ||
], | ||
"properties": { | ||
"Message": { | ||
"type": "string" | ||
}, | ||
"MessageAttributes": { | ||
"patternProperties": { | ||
".*": { | ||
"additionalProperties": true, | ||
"type": "object" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"MessageId": { | ||
"type": "string" | ||
}, | ||
"Signature": { | ||
"type": "string" | ||
}, | ||
"SignatureVersion": { | ||
"type": "string" | ||
}, | ||
"SigningCertUrl": { | ||
"type": "string" | ||
}, | ||
"Subject": { | ||
"type": "string" | ||
}, | ||
"Timestamp": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"TopicArn": { | ||
"type": "string" | ||
}, | ||
"Type": { | ||
"type": "string" | ||
}, | ||
"UnsubscribeUrl": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"SNSEvent": { | ||
"required": [ | ||
"Records" | ||
], | ||
"properties": { | ||
"Records": { | ||
"items": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/SNSEventRecord" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
}, | ||
"SNSEventRecord": { | ||
"required": [ | ||
"EventVersion", | ||
"EventSubscriptionArn", | ||
"EventSource", | ||
"Sns" | ||
], | ||
"properties": { | ||
"EventSource": { | ||
"type": "string" | ||
}, | ||
"EventSubscriptionArn": { | ||
"type": "string" | ||
}, | ||
"EventVersion": { | ||
"type": "string" | ||
}, | ||
"Sns": { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$ref": "#/definitions/SNSEntity" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"RequestType" : "Create", | ||
"ResponseURL" : "http://pre-signed-S3-url-for-response", | ||
"StackId" : "arn:aws:cloudformation:us-west-2:123456789012:stack/mystack/5b918d10-cd98-11ea-90d5-0a9cd3354c10", | ||
"RequestId" : "unique id for this create request", | ||
"ResourceType" : "Custom::TestResource", | ||
"LogicalResourceId" : "MyTestResource", | ||
"ResourceProperties" : {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"Status" : "SUCCESS", | ||
"StackId" : "arn:aws:cloudformation:us-east-1:123456789012:stack/mystack/5b918d10-cd98-11ea-90d5-0a9cd3354c10", | ||
"RequestId" : "uniqueid for this update request", | ||
"LogicalResourceId" : "RegisterDnsZoneFunction", | ||
"PhysicalResourceId" : "stack-RegisterDnsZoneFunction-main" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"Status": { | ||
"type": "string" | ||
}, | ||
"StackId": { | ||
"type": "string" | ||
}, | ||
"RequestId": { | ||
"type": "string" | ||
}, | ||
"LogicalResourceId": { | ||
"type": "string" | ||
}, | ||
"PhysicalResourceId": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"LogicalResourceId", | ||
"PhysicalResourceId", | ||
"RequestId", | ||
"StackId", | ||
"Status" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[pytest] | ||
testpaths = tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Oops, something went wrong.