This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def hello_plop(): | |
| print("Coucou from plop") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [defaults] | |
| retry_files_enabled = False | |
| [ssh_connection] | |
| ssh_args=-oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ terraform apply | |
| data.scaleway_image.example11: Refreshing state... | |
| scaleway_server.example11: Refreshing state... (ID: 1576a6ea-e848-4460-900f-08704a28ce5b) | |
| An execution plan has been generated and is shown below. | |
| Resource actions are indicated with the following symbols: | |
| ~ update in-place | |
| Terraform will perform the following actions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ terraform apply | |
| scaleway_server.example01: Refreshing state... (ID: 373c18dc-7e91-42b0-94e1-4957ac31eb2d) | |
| An execution plan has been generated and is shown below. | |
| Resource actions are indicated with the following symbols: | |
| -/+ destroy and then create replacement | |
| Terraform will perform the following actions: | |
| -/+ scaleway_server.example01 (new resource required) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plugin: scaleway | |
| regions: | |
| - ams1 | |
| - par1 | |
| tags: | |
| - web_server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| ''' | |
| Scaleway Cloud Module | |
| ===================== | |
| .. versionadded:: 2015.8.0 | |
| The Scaleway cloud module is used to interact with your Scaleway BareMetal | |
| Servers. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # | |
| # Scaleway Compute management module | |
| # | |
| # Copyright (C) 2018 Online SAS. | |
| # https://www.scaleway.com | |
| # | |
| # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | |
| from __future__ import absolute_import, division, print_function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import requests | |
| token = os.getenv('SCW_TOKEN', "Insert your API Token here if you don't want to define environment variable") | |
| def test_list_all_ips(): | |
| """ | |
| Request to list all IPs present on your account. | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import requests | |
| token = os.getenv('SCW_TOKEN', "Insert your API Token here if you don't want to define environment variable") | |
| def test_list_all_images(): | |
| """ | |
| Request to list all images present on your account | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Testing for account API | |
| """ | |
| import os | |
| import requests | |
| token = os.getenv('SCW_TOKEN', "Insert your API Token here if you don't want to define environment variable") | |