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

SimpleDB Stage Support #974

Closed
jgilbert01 opened this issue Apr 8, 2016 · 6 comments
Closed

SimpleDB Stage Support #974

jgilbert01 opened this issue Apr 8, 2016 · 6 comments

Comments

@jgilbert01
Copy link

We use simpledb for something and want to be able to prefix the domain names to support stages.
However, the simpledb cloudformation resource type is unique in that it has no properties and the alphanumeric resource name is used as the domain name.
Thus we get this error:
ServerlessError: ServerlessError: Template format error: Resource name ${stage}${project}Domain1 is non alphanumeric.

When we try this:

    "${stage}${project}Domain1": {
      "Type": "AWS::SDB::Domain"
    },

and this:

    "${stage}${project}Domain1": {
      "Description": "ARN of the Domain1",
      "Value": {
        "Fn::GetAtt": [
          "${stage}${project}Domain1",
          "Arn"
        ]
      }
    },

Can serverless add support for parameterized resource names?
Or is there some kind of workaround?
Or do I need to look at creating a plugin.

@BlueBlock
Copy link
Contributor

I believe SimpleDB is deprecated. It may be advisable to migrate to using DynamoDB.

@JamieCressey
Copy link

Agreed. SimpleDB is deprecated and not available to new AWS users.

@stockholmux
Copy link

@JamieCressey and @BlueBlock Do you have a source on the deprecation of SimpleDB?

@flomotlik
Copy link
Contributor

@stockholmux Its not officially deprecated, just not linked in any of the product pages and there haven't been news/updates in a while. Which isn't necessarily a bad thing per se. In an upcoming version of Serverless we're going to change the way we do resource handling through Cloudformation quite a bit. Until then your best bet is probably going with either variables (e.g. hardcoding it in the variables file directly) or generally hardcoding the names. Not an ideal solution, but we won't be changing this before we're releasing the new CF integration.

I will close the issue for now, if you have any further questions regarding a plugin let me know

@jgilbert01
Copy link
Author

To support our current need I have created a simpledb plugin:

@flomotlik
Copy link
Contributor

Oh very cool!

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

No branches or pull requests

5 participants