Hello,

I can't create that tag and still don't know why ?

C:\someproject>*gcloud compute instances add-tags aef-instance --zone
europe-west1-b --tags mynetwork*
ERROR: (gcloud.compute.instances.add-tags) Could not fetch resource:
 - *The resource
'projects/*************/zones/europe-west1-b/instances/aef-instance' was
not found*

Do I need to create a VM instance first or a firewall-rules before ?
Like that : gcloud compute firewall-rules create

 Thank you so much for your help !!
Sarah

Le mer. 18 mars 2020 à 17:33, 'Pierre-Yves (Google Cloud Support)' via
Google App Engine <[email protected]> a écrit :

> As previously mentioned, the "aef-instance" tag was probably not added
> prior to being referenced in the "app.yaml" file. Here is the documentation
> [1] on how to properly set the network settings in the configuration file,
> with an explanation on the "instance_tag" and "name" option. Here is how
> [2] to add the network tags that will subsequently be referenced.
>
> [1]
> https://cloud.google.com/appengine/docs/flexible/nodejs/reference/app-yaml#network_settings
> [2]
> https://cloud.google.com/vpc/docs/add-remove-network-tags#adding_new_tags_to_vm_instances
>
> On Wednesday, March 18, 2020 at 9:35:03 AM UTC-4, Ben Abdesslem Sarah
> wrote:
>>
>> Hello,
>>
>> Thank you, you're right for the identation.
>> But now I'm getting another error about the network.
>> At this line in app.yaml : "name: mynetwork "
>>
>> Here is the error message:
>> Finished Step #1
>> PUSH
>> DONE
>>
>> ------------------------------------------------------------------------------------------------------------------------
>>
>> ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Network 'mynetwork' does not
>> exist
>>
>> And that's my app.yaml file :
>>
>> runtime: php
>> env: flex
>>
>> runtime_config:
>>  document_root: public
>>
>> skip_files:
>>  - .env
>>
>> network:
>>   instance_tag: aef-instance
>>   name: mynetwork
>>   subnetwork_name: subnetwork1
>>
>> env_variables:
>>  APP_ENV: local
>>  APP_DEBUG : true
>>  APP_KEY: base64:********************************/iOQ=
>>  APP_STORAGE: /tmp
>>  VIEW_COMPILED_PATH: /tmp
>>
>>  CACHE_DRIVER: database
>>  SESSION_DRIVER: database
>>  APP_LOG: daily
>>  APP_TIMEZONE: UTC
>>  DB_CONNECTION: mysql
>>  DB_HOST: localhost
>>  DB_PORT: 3306
>>  DB_DATABASE: **************
>>  DB_USERNAME: root
>>  DB_PASSWORD: ******************
>>  DB_SOCKET: /cloudsql/*****************:europe-west1:*********
>>
>>  QUEUE_DRIVER: database
>>  MAIL_MAILER: smtp
>>  MAIL_HOST: smtp.mailtrap.io
>>  MAIL_PORT: 2525
>>  MAIL_USERNAME: null
>>  MAIL_PASSWORD: null
>>
>>  GOOGLE_VISION_PROJECT_ID : *********************
>>
>>
>>
>>
>> Thanks in advance !!!
>>
>> Le lun. 16 mars 2020 à 23:28, Mua Rachmann <[email protected]> a
>> écrit :
>>
>>> The error indicates your yaml file is not properly formatted.
>>> Try checking your indentation somewhere. Maybe something is not well
>>> aligned or given more spacing somewhere.
>>> Generally it is two(2) spacing something of the sort. Let me know if the
>>> error still persists. For instance take a look at your
>>>
>>> beta_settings:
>>>    cloud_sql_instances: ****************************
>>>
>>> It is way much indented than the others
>>>
>>> Best,
>>> Mua
>>>
>>>
>>> On Mon, 16 Mar 2020 at 22:06 Ben Abdesslem Sarah <
>>> [email protected]> wrote:
>>>
>>>> Hello,
>>>>
>>>> This doesn't work. I don't know what to put there on the instance_tag.
>>>> And I have read so many times the Google documentation about Network
>>>> settings.
>>>>
>>>> C:\Users\someproject>gcloud app deploy
>>>> ERROR: (gcloud.app.deploy) An error occurred while parsing file:
>>>> [C:\Users\someproject\app.yaml]
>>>>   in "C:\Users\someproject\*app.yaml", line 42, column 17*
>>>>
>>>> The line 42 is *instance_tag: aef-instance*
>>>>
>>>>  network:
>>>>   instance_tag: aef-instance
>>>>   name: mynetwork
>>>>   subnetwork_name: subnetwork1
>>>>
>>>> If someone could help me, it will be really nice. Thank you in advance
>>>> !
>>>>
>>>> Le lun. 16 mars 2020 à 12:36, 'methkal' via Google App Engine <
>>>> [email protected]> a écrit :
>>>>
>>>>> *instane_tag* can be anything of your choice. you can use for example
>>>>> "aef-instance". this tag is assigned to each instance of the service upon
>>>>> its creation.
>>>>> The network *name *has to be the short name not the resource
>>>>> path  (for example, *mynetwork* rather than 
>>>>> *https://www.googleapis.com/compute/v1/projects/my-project/global/networks/mynetwork
>>>>> <https://www.googleapis.com/compute/v1/projects/my-project/global/networks/mynetwork>*
>>>>> ).
>>>>> For *subnetwork_name *use also the short name like *subnetwork1*
>>>>> rather than 
>>>>> *https://www.googleapis.com/compute/v1/projects/my-project/global/networks/default/subnetworks/subnetwork1
>>>>> <https://www.googleapis.com/compute/v1/projects/my-project/global/networks/default/subnetworks/subnetwork1>*
>>>>>
>>>>> check this page for more information
>>>>> <https://cloud.google.com/appengine/docs/flexible/php/reference/app-yaml#network_settings>
>>>>>
>>>>> if that doesn't work. can you post the error that you receive after
>>>>> these modifications?
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Google App Engine" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/google-appengine/16fbc448-a895-4e94-8a08-ec913b1181e2%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/google-appengine/16fbc448-a895-4e94-8a08-ec913b1181e2%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Google App Engine" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/google-appengine/CAFgsb9a2yQDdk5PV8-m0cDTrDgJZTQT3k%2Bn2CrOgRsE5NTTkOw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/google-appengine/CAFgsb9a2yQDdk5PV8-m0cDTrDgJZTQT3k%2Bn2CrOgRsE5NTTkOw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-appengine/CAHAhu-jvcp4hSaKSTymNmtJCDRf6sPN%2BSDsuWCS_x4gL9Pv9Lw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/google-appengine/CAHAhu-jvcp4hSaKSTymNmtJCDRf6sPN%2BSDsuWCS_x4gL9Pv9Lw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/376a9855-fea0-433b-a4c1-dc100810654a%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/376a9855-fea0-433b-a4c1-dc100810654a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAFgsb9YqKgkCqf%3DE5hP%3Dfsf6W5HpNbt%3DfSBM8spV2Agf0bv5jg%40mail.gmail.com.
  • [google-appengi... Ben Abdesslem Sarah
    • [google-ap... 'George (Cloud Platform Support)' via Google App Engine
    • [google-ap... Ben Abdesslem Sarah
      • [googl... 'methkal' via Google App Engine
        • Re... Ben Abdesslem Sarah
          • ... Mua Rachmann
            • ... Ben Abdesslem Sarah
              • ... Mua Rachmann
              • ... 'Pierre-Yves (Google Cloud Support)' via Google App Engine
                • ... Ben Abdesslem Sarah
                • ... 'Pierre-Yves (Google Cloud Support)' via Google App Engine
                • ... Ben Abdesslem Sarah
                • ... 'noverlyjoseph' via Google App Engine

Reply via email to