Fail to create a custom domain name for websocket API gateway using AWS Cloudformation Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceCreating an Aurora Serverless Cluster from cloudformation?AWS API Gateway Custom Domain + AWS CloudFrontWhy API Gateway custom domain creation does not supported in cloud formation templatesCreating SNS platform application with AWS Cloudformation?Custom domain name for api , domain already exists in the stackHow can we create database and table in Amazon Athena using CloudFormationAWS Cloudformation - cannot set parameters group nameCreating an Aurora Serverless Cluster from cloudformation?Using CloudFormation Designer to auto generate CF template visualizationsAWS API Gateway Websockets — where is the connectionID?How to create a lambda permission for a custom websocket request authorizer with CloudFormation for API Gateway?
How does modal jazz use chord progressions?
Why is "Captain Marvel" translated as male in Portugal?
Windows 10: How to Lock (not sleep) laptop on lid close?
What LEGO pieces have "real-world" functionality?
Is there folklore associating late breastfeeding with low intelligence and/or gullibility?
Passing functions in C++
What is the largest species of polychaete?
Why does this iterative way of solving of equation work?
Is there a documented rationale why the House Ways and Means chairman can demand tax info?
Stars Make Stars
What items from the Roman-age tech-level could be used to deter all creatures from entering a small area?
How many spell slots should a Fighter 11/Ranger 9 have?
How do I automatically answer y in bash script?
Mortgage adviser recommends a longer term than necessary combined with overpayments
Complexity of many constant time steps with occasional logarithmic steps
Array/tabular for long multiplication
Writing Thesis: Copying from published papers
How to say that you spent the night with someone, you were only sleeping and nothing else?
Can smartphones with the same camera sensor have different image quality?
Did the new image of black hole confirm the general theory of relativity?
What was Bilhah and Zilpah's ancestry?
How to add zeros to reach same number of decimal places in tables?
Limit for e and 1/e
Cold is to Refrigerator as warm is to?
Fail to create a custom domain name for websocket API gateway using AWS Cloudformation
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceCreating an Aurora Serverless Cluster from cloudformation?AWS API Gateway Custom Domain + AWS CloudFrontWhy API Gateway custom domain creation does not supported in cloud formation templatesCreating SNS platform application with AWS Cloudformation?Custom domain name for api , domain already exists in the stackHow can we create database and table in Amazon Athena using CloudFormationAWS Cloudformation - cannot set parameters group nameCreating an Aurora Serverless Cluster from cloudformation?Using CloudFormation Designer to auto generate CF template visualizationsAWS API Gateway Websockets — where is the connectionID?How to create a lambda permission for a custom websocket request authorizer with CloudFormation for API Gateway?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I need to create a custom domain name for a websocket enabled API gateway and seems that CloudFormation for API gateway v2 (which is basically for websocket) doesn’t support it (at least the documentation https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-reference-apigatewayv2.html doesn’t mention this). I tried with AWS::ApiGateway::DomainName which I believe is for Rest API gateway but the stack fails with the error
This custom domain name cannot map to WEBSOCKET protocol Apis.
I see that AWS CLI does support API gateway v2 create domain name command (https://docs.aws.amazon.com/cli/latest/reference/apigatewayv2/create-domain-name.html) but not sure the reason why the CloudFormation wouldn’t support this.
Any workaround or feedback would be greatly appreciated.
amazon-web-services websocket amazon-cloudformation aws-api-gateway
add a comment |
I need to create a custom domain name for a websocket enabled API gateway and seems that CloudFormation for API gateway v2 (which is basically for websocket) doesn’t support it (at least the documentation https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-reference-apigatewayv2.html doesn’t mention this). I tried with AWS::ApiGateway::DomainName which I believe is for Rest API gateway but the stack fails with the error
This custom domain name cannot map to WEBSOCKET protocol Apis.
I see that AWS CLI does support API gateway v2 create domain name command (https://docs.aws.amazon.com/cli/latest/reference/apigatewayv2/create-domain-name.html) but not sure the reason why the CloudFormation wouldn’t support this.
Any workaround or feedback would be greatly appreciated.
amazon-web-services websocket amazon-cloudformation aws-api-gateway
add a comment |
I need to create a custom domain name for a websocket enabled API gateway and seems that CloudFormation for API gateway v2 (which is basically for websocket) doesn’t support it (at least the documentation https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-reference-apigatewayv2.html doesn’t mention this). I tried with AWS::ApiGateway::DomainName which I believe is for Rest API gateway but the stack fails with the error
This custom domain name cannot map to WEBSOCKET protocol Apis.
I see that AWS CLI does support API gateway v2 create domain name command (https://docs.aws.amazon.com/cli/latest/reference/apigatewayv2/create-domain-name.html) but not sure the reason why the CloudFormation wouldn’t support this.
Any workaround or feedback would be greatly appreciated.
amazon-web-services websocket amazon-cloudformation aws-api-gateway
I need to create a custom domain name for a websocket enabled API gateway and seems that CloudFormation for API gateway v2 (which is basically for websocket) doesn’t support it (at least the documentation https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-reference-apigatewayv2.html doesn’t mention this). I tried with AWS::ApiGateway::DomainName which I believe is for Rest API gateway but the stack fails with the error
This custom domain name cannot map to WEBSOCKET protocol Apis.
I see that AWS CLI does support API gateway v2 create domain name command (https://docs.aws.amazon.com/cli/latest/reference/apigatewayv2/create-domain-name.html) but not sure the reason why the CloudFormation wouldn’t support this.
Any workaround or feedback would be greatly appreciated.
amazon-web-services websocket amazon-cloudformation aws-api-gateway
amazon-web-services websocket amazon-cloudformation aws-api-gateway
edited Mar 12 at 20:50
ASR
757321
757321
asked Mar 8 at 14:50
Hari PradhanHari Pradhan
31
31
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Usually the way it works is that new features first appear in CLI or APIs and are added to CFN later on. Why? Because I believe CFN uses the same API internally to create the resource with given properties. Here's a similar thread with same experience for when Aurora Serverless was released. Creating an Aurora serverless cluster from cloudformation
Workaround - create a lambda backed AWS::CloudFormation::CustomResource & call the createDomainName API from the lambda to create your custom domain name. Sometime in the future, it probably will be made available in cloudformation.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55065675%2ffail-to-create-a-custom-domain-name-for-websocket-api-gateway-using-aws-cloudfor%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Usually the way it works is that new features first appear in CLI or APIs and are added to CFN later on. Why? Because I believe CFN uses the same API internally to create the resource with given properties. Here's a similar thread with same experience for when Aurora Serverless was released. Creating an Aurora serverless cluster from cloudformation
Workaround - create a lambda backed AWS::CloudFormation::CustomResource & call the createDomainName API from the lambda to create your custom domain name. Sometime in the future, it probably will be made available in cloudformation.
add a comment |
Usually the way it works is that new features first appear in CLI or APIs and are added to CFN later on. Why? Because I believe CFN uses the same API internally to create the resource with given properties. Here's a similar thread with same experience for when Aurora Serverless was released. Creating an Aurora serverless cluster from cloudformation
Workaround - create a lambda backed AWS::CloudFormation::CustomResource & call the createDomainName API from the lambda to create your custom domain name. Sometime in the future, it probably will be made available in cloudformation.
add a comment |
Usually the way it works is that new features first appear in CLI or APIs and are added to CFN later on. Why? Because I believe CFN uses the same API internally to create the resource with given properties. Here's a similar thread with same experience for when Aurora Serverless was released. Creating an Aurora serverless cluster from cloudformation
Workaround - create a lambda backed AWS::CloudFormation::CustomResource & call the createDomainName API from the lambda to create your custom domain name. Sometime in the future, it probably will be made available in cloudformation.
Usually the way it works is that new features first appear in CLI or APIs and are added to CFN later on. Why? Because I believe CFN uses the same API internally to create the resource with given properties. Here's a similar thread with same experience for when Aurora Serverless was released. Creating an Aurora serverless cluster from cloudformation
Workaround - create a lambda backed AWS::CloudFormation::CustomResource & call the createDomainName API from the lambda to create your custom domain name. Sometime in the future, it probably will be made available in cloudformation.
answered Mar 12 at 17:12
ASRASR
757321
757321
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55065675%2ffail-to-create-a-custom-domain-name-for-websocket-api-gateway-using-aws-cloudfor%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown