2016-10-12 7 views
1

ich einen API-Schlüssel haben und es mit meinem Nutzungsplan über Cloudformation zuordnen möchten die folgende Vorlage verwenden, aber es funktioniert nicht:UsagePlanKeys Cloudformation

"usagePlanKey": 
    { 
    "Type": "AWS::ApiGateway::UsagePlanKey", 
    "Properties":{ 
    "UsagePlanId":{"Ref":"usagePlan"}, 
    "KeyId":{"Ref":"ApiKey"}, 
    "KeyType":"API_KEY" 
    } 

Kann ich eine Ressource erstellen, wenn es noch nicht ist realisiert von AWS?

Antwort

0

Sie können nicht Typen erstellen, die nicht in Cloudformation umgesetzt haben, sind die aktuelle Liste der Ressourcen Unterstützung für den Cloudformation ApiGateway Service:

  • AWS :: ApiGateway :: Konto
  • AWS :: ApiGateway :: apikey
  • AWS :: ApiGateway :: Authorizer
  • AWS :: ApiGateway :: BasePathMapping
  • AWS :: ApiGateway :: Clientcertificate
  • AWS :: :: ApiGateway Deployment
  • AWS :: :: ApiGateway Method
  • AWS :: :: ApiGateway Modell
  • AWS :: :: ApiGateway Ressourcen
  • AWS :: :: ApiGateway RestApi
  • AWS :: ApiGateway :: Bühnen
  • AWS :: ApiGateway :: UsagePlan

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html

Es gibt eine ähnliche Frage hier;

Can you create Usage Plan with Cloud Formation?

Es scheint, dass die aktuelle Lösung beinhaltet manuell API Schlüssel auf einen Nutzungsplan