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

AWS::EFS::FileSystem - DNSName accesible via Fn::GetAtt #234

Open
akunszt opened this issue Oct 22, 2019 · 1 comment
Open

AWS::EFS::FileSystem - DNSName accesible via Fn::GetAtt #234

akunszt opened this issue Oct 22, 2019 · 1 comment
Labels
enhancement New feature or request storage S3, EFS, FSx, S3 Glacier, Storage Gateway, AWS Backup

Comments

@akunszt
Copy link

akunszt commented Oct 22, 2019

1. Title

AWS::EFS::FileSystem - DNSName accesible via Fn::GetAtt

2. Scope of request

Make the DNSName accessible using Fn::GetAtt on an AWS::EFS::FileSystem resource.

3. Expected behavior

Get back the DNS name created for the AWS::EFS::FileSystem resource, e.g. fs-XXXXX.efs.us-west-2.amazonaws.com

4. Suggest specific test cases

N/A

5. Helpful Links to speed up research and evaluation

N/A

6. Category

Storage

7. Any additional context

We want to mount EFS automatically in our EC2 instances, so we need to know how to access the it. The EFS file system (and a bunch of MountPoints but those are out of scope here) is created within the same stack. As we can't query the DNS name directly we have to use workarounds like this (it's a snippet from a LaunchTemplate, we're using tags to pass this information but the issue is the same if someone wants to put this into the UserData):

"TagSpecifications": [
  {
    "ResourceType": "instance",
    "Tags": [
      {
        "Key": "my_company:local:efs_server",
        "Value": {
          "Fn::Sub": [
             "${EFSServer}.efs.${AWS::Region}.amazonaws.com",
             { "EFSServer": { "Ref": "FileSystem" } }
          ],
        }
      }
    ]
  }
]

Instead of assembling the DNS name manually - and hoping that the generation method won't change without any notice - we would like to use something like this:

"TagSpecifications": [
  {
    "ResourceType": "instance",
    "Tags": [
      {
        "Key": "my_company:local:efs_server",
        "Value": { "Fn::GetAtt": [ "FileSystem", "DNSName" ] }
      }
    ]
  }
]
@TheDanBlanco TheDanBlanco added storage S3, EFS, FSx, S3 Glacier, Storage Gateway, AWS Backup enhancement New feature or request labels Oct 24, 2019
@r-heimann
Copy link

Related to #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request storage S3, EFS, FSx, S3 Glacier, Storage Gateway, AWS Backup
Projects
None yet
Development

No branches or pull requests

3 participants