{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/5606","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/5606/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/5606/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/5606/events","html_url":"https://github.com/serverless/serverless/issues/5606","id":391682210,"node_id":"MDU6SXNzdWUzOTE2ODIyMTA=","number":5606,"title":"AWS: Extend ${cf} syntax to get output from another region broken","user":{"login":"smartinspereira","id":5126354,"node_id":"MDQ6VXNlcjUxMjYzNTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5126354?v=4","gravatar_id":"","url":"https://api.github.com/users/smartinspereira","html_url":"https://github.com/smartinspereira","followers_url":"https://api.github.com/users/smartinspereira/followers","following_url":"https://api.github.com/users/smartinspereira/following{/other_user}","gists_url":"https://api.github.com/users/smartinspereira/gists{/gist_id}","starred_url":"https://api.github.com/users/smartinspereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartinspereira/subscriptions","organizations_url":"https://api.github.com/users/smartinspereira/orgs","repos_url":"https://api.github.com/users/smartinspereira/repos","events_url":"https://api.github.com/users/smartinspereira/events{/privacy}","received_events_url":"https://api.github.com/users/smartinspereira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-17T12:04:55Z","updated_at":"2019-01-02T14:33:09Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n1. If you have a question and not a bug report please ask first at http://forum.serverless.com\r\n2. Please check if an issue already exists. This bug may have already been documented\r\n3. Check out and follow our Guidelines: https://github.com/serverless/serverless/blob/master/CONTRIBUTING.md\r\n4. Fill out the whole template so we have a good overview on the issue\r\n5. Do not remove any section of the template. If something is not applicable leave it empty but leave it in the Issue\r\n6. Please follow the template, otherwise we'll have to ask you to update it\r\n-->\r\n\r\n# This is a Bug Report\r\n\r\n## Description\r\n@dschep @horike37 @exoego \r\nmaybe I am missing something here, but this feature doesn't seem to be working as intended.\r\ncf cross region is just creating a stack on the referenced region, with naming from the referencing region.\r\n\r\n* What went wrong?\r\n  - created stack `bar` in zone **`y`** and reference existing stack `foo` in zone `y`  \r\n* What did you expect should have happened?\r\n  - created stack `bar` in zone **`x`** and reference existing stack `foo` in zone `y`  \r\n* What was the config you used?\r\n  - this two used stacks `foo` and `bar` will cause the error. `x=us-east-1;` `y=eu-central-1;`\r\n\r\n```\r\nservice: foo\r\n\r\nprovider:\r\n  name: aws\r\n  region: eu-central-1\r\n  stage: dev\r\n  profile: cndx-dev\r\n  runtime: nodejs8.10\r\n  memory: 1024\r\n\r\nfunctions:\r\n  hello:\r\n    handler: handler.hello\r\n\r\nresources:\r\n  Outputs:\r\n    foo:\r\n      Value: foo\r\n      Export:\r\n        Name: foo\r\n```\r\n\r\n```\r\nservice: bar\r\n\r\nprovider:\r\n  name: aws\r\n  region: us-east-1\r\n  stage: dev\r\n  profile: cndx-dev\r\n  runtime: nodejs8.10\r\n  memory: 1024\r\n\r\nfunctions:\r\n  hello:\r\n    handler: handler.hello\r\n\r\nresources:\r\n  Outputs:\r\n    foobar:\r\n      Value: ${self:custom.foobar}\r\n      Export:\r\n        Name: foobar\r\n\r\ncustom:\r\n  foobar: ${cf.eu-central-1:foo-dev.foo}bar\r\n  # foobar: foobar\r\n```\r\n\r\n* What stacktrace or error message from your provider did you see?\r\n  - none\r\n\r\n* Steps to reproduce:\r\n```\r\nversion 1:\r\n  1. `sls deploy` foo\r\n  2. `sls deploy` bar (_with_ the stack reference in this last two lines enabled)\r\n    -> this will lead to the creation of a new stack `bar-dev` in the same region as `foo-dev`\r\n    -> error: _no direct error_ but stack `bar-dev` should be in  `us-east-1`\r\n```\r\n```\r\nversion 2:\r\n1. `sls deploy` foo\r\n2. `sls deploy` bar (_without_ the stack reference in this last two lines enabled)\r\n3. `sls deploy` bar (_with_ the stack reference in this last two lines enabled)\r\n  -> this will lead to the creation of a new stack `bar-dev` in the same region as `foo-dev`\r\n  -> error: `An error occurred: IamRoleLambdaExecution - bar-dev-us-east-1-lambdaRole already exists.`\r\n```\r\n\r\nSimilar or dependent issues:\r\n* none\r\n\r\n## Additional Data\r\n\r\n* ***Serverless Framework Version you're using***: 1.35.0\r\n* ***Operating System***: macos 10.14.2\r\n* ***Stack Trace***: none\r\n* ***Provider Error messages***: none\r\n"},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/450877875","html_url":"https://github.com/serverless/serverless/issues/5606#issuecomment-450877875","issue_url":"https://api.github.com/repos/serverless/serverless/issues/5606","id":450877875,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDg3Nzg3NQ==","user":{"login":"dschep","id":667763,"node_id":"MDQ6VXNlcjY2Nzc2Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/667763?v=4","gravatar_id":"","url":"https://api.github.com/users/dschep","html_url":"https://github.com/dschep","followers_url":"https://api.github.com/users/dschep/followers","following_url":"https://api.github.com/users/dschep/following{/other_user}","gists_url":"https://api.github.com/users/dschep/gists{/gist_id}","starred_url":"https://api.github.com/users/dschep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschep/subscriptions","organizations_url":"https://api.github.com/users/dschep/orgs","repos_url":"https://api.github.com/users/dschep/repos","events_url":"https://api.github.com/users/dschep/events{/privacy}","received_events_url":"https://api.github.com/users/dschep/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T14:33:09Z","updated_at":"2019-01-02T14:33:09Z","author_association":"MEMBER","body":"Sorry, been overwhelmed without time to check this out. @exoego, any chance you have any input since you implemented this feature?"}}
{"actor":{"display_login":"dschep"}}