Open triptec opened 5 years ago
@triptec did you finally figure out a solution? I'm having a similar problem (also using serverless-domain-manager
). Do you think it could be related to https://github.com/dougmoscrop/serverless-plugin-split-stacks/issues/106?
@chemalopezp I honestly don’t remember and I haven’t got access to the git logs or source but I’ll see if I can ask someone
I hit this same issue. It was introduced in commit 8273717... @jormaechea
Before commit 827371789a07144977d59de4690b73a3fb777dfb
(works fine):
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "PoliciesNestedStack nested stack",
"Parameters": {
"ServerlessDeploymentBucketParameter": {
"Type": "String"
}
},
"Resources": {
"ServerlessDeploymentBucketPolicy": {
"Type": "AWS::S3::BucketPolicy",
"Properties": {
"Bucket": {
"Ref": "ServerlessDeploymentBucketParameter"
},
"PolicyDocument": {
"Statement": [
{
"Action": "s3:*",
"Effect": "Deny",
"Principal": "*",
"Resource": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":s3:::",
{
"Ref": "ServerlessDeploymentBucketParameter"
},
"/*"
]
]
}
],
"Condition": {
"Bool": {
"aws:SecureTransport": false
}
}
}
]
}
},
"DependsOn": []
}
},
"Outputs": {}
}
After (broken due to incorrect Ref):
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "PoliciesNestedStack nested stack",
"Parameters": {
"ServerlessDeploymentBucketParameter": {
"Type": "String"
}
},
"Resources": {
"ServerlessDeploymentBucketPolicy": {
"Type": "AWS::S3::BucketPolicy",
"Properties": {
"Bucket": {
"Ref": "ServerlessDeploymentBucket"
},
"PolicyDocument": {
"Statement": [
{
"Action": "s3:*",
"Effect": "Deny",
"Principal": "*",
"Resource": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":s3:::",
{
"Ref": "ServerlessDeploymentBucket"
},
"/*"
]
]
}
],
"Condition": {
"Bool": {
"aws:SecureTransport": false
}
}
}
]
}
},
"DependsOn": []
}
},
"Outputs": {}
}
Confirmed the issue is caused by _cloneDeep
on Line 234 and Line 239. Removing this fixes the issue.
I'm running into this as well, in my first usage of the plugin.
What are the chances that removing cloneDeep
will cause other issues?
Wow, 4yrs and still open. This project is dead isn't it?
The CloudFormation template is invalid: Template format error: Unresolved resource dependencies [ServerlessDeploymentBucket] in the Resources block of the template
I'm getting above error trying to use this plugin but I can't figure out why,
other plugins:
split stacks config:
and this stacks-map.js: