Skip to content

Instantly share code, notes, and snippets.

View remyleone's full-sized avatar
🥑
Working on { Ansible , Packer , Terraform , CLI, SDKs }

Rémy Léone remyleone

🥑
Working on { Ansible , Packer , Terraform , CLI, SDKs }
View GitHub Profile
def hello_plop():
print("Coucou from plop")
[defaults]
retry_files_enabled = False
[ssh_connection]
ssh_args=-oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no
$ 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:
$ 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)
plugin: scaleway
regions:
- ams1
- par1
tags:
- web_server
# -*- coding: utf-8 -*-
'''
Scaleway Cloud Module
=====================
.. versionadded:: 2015.8.0
The Scaleway cloud module is used to interact with your Scaleway BareMetal
Servers.
#!/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
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.
"""
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
"""
"""
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")