Custom name for a sample application

0

Is it possible to give a custom name to the sample application used in a Cloud Formation template. I'm using the AWS provided sample app with the S3Key: java-sample-app.zip. When I deploy it using my template the name I see contains the name of the stack + the application name + an ID:

Enter image description here

Some parts of my template:

CustomerApplication5:
    Type: AWS::ElasticBeanstalk::Application
    DeletionPolicy: Retain
    Properties:
      ApplicationName: CustomerApplication5
      Description: Test Application

  CustomerApplication5Version:
    Type: AWS::ElasticBeanstalk::ApplicationVersion
    DeletionPolicy: Retain
    Properties:
      ApplicationName: 
        Ref: CustomerApplication5
      Description: Sample Application
      SourceBundle: 
        S3Bucket: !Sub "elasticbeanstalk-samples-${AWS::Region}"
        S3Key: java-sample-app.zip

MyEB:
    Type: AWS::ElasticBeanstalk::Environment
    DeletionPolicy: Retain
    Properties:
      ApplicationName:
        Ref: CustomerApplication5
      EnvironmentName: customerApp5
      Description: EB Test environment
      TemplateName:
        Ref: MyEBConfigurationTemplate
      VersionLabel:
        Ref: CustomerApplication5Version
質問済み 2年前183ビュー
1回答
0

You can change the property " ApplicationName" under resource CustomerApplication5 properties and that should help . For example

CustomerApplication5:
    Type: AWS::ElasticBeanstalk::Application
    DeletionPolicy: Retain
    Properties:
      ApplicationName: --------

----- could be replaced with what you wanted in application name.

AWS
エキスパート
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ